This commit is contained in:
Simon Gardling
2022-04-11 13:44:35 -04:00
parent da0c3ebb78
commit 3120f8781d
2 changed files with 26 additions and 23 deletions

View File

@@ -71,6 +71,13 @@ impl<'a> HintEnum<'a> {
#[allow(dead_code)]
pub fn is_some(&self) -> bool { !self.is_none() }
pub fn is_single(&self) -> bool {
match self {
HintEnum::Single(_) => true,
_ => false,
}
}
}
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));