added convenience function for getting basic type
This commit is contained in:
parent
dd9ceb6bc3
commit
b3a39afa12
1 changed files with 12 additions and 0 deletions
|
@ -56,6 +56,18 @@ impl Scenes {
|
||||||
Scenes::Augmented => {String::from_str("Augmented").unwrap()},
|
Scenes::Augmented => {String::from_str("Augmented").unwrap()},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn is_camera(&self) -> bool {
|
||||||
|
match self { Scenes::Camera => true, _ => false }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn is_screen(&self) -> bool {
|
||||||
|
match self { Scenes::Screen => true, _ => false }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn is_augmeted(&self) -> bool {
|
||||||
|
match self {Scenes::Augmented => true, _ => false }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Debug, Clone, Copy)]
|
#[derive(PartialEq, Debug, Clone, Copy)]
|
||||||
|
|
Loading…
Reference in a new issue