added enum for change-slide handling

This commit is contained in:
Nickiel12 2021-12-20 15:56:46 -08:00
parent 2a2c862df8
commit 3decc966c9

View file

@ -45,3 +45,18 @@ impl Scenes {
} }
} }
#[derive(PartialEq, Debug, Clone, Copy)]
pub enum SlideChange {
Next,
Previous,
}
impl SlideChange {
pub fn to_string(&self) -> String {
match self {
SlideChange::Next => {String::from_str("Next_Slide").unwrap()},
SlideChange::Previous => {String::from_str("Prev_Slide").unwrap()},
}
}
}