List states

This commit is contained in:
hodasemi 2024-08-26 11:46:43 +02:00
parent ed9fdcefeb
commit 304a29397b

View file

@ -238,6 +238,11 @@ impl States {
self
}
/// lists available states
pub fn states(&self) -> impl Iterator<Item = &str> {
self.states.keys().map(|s| s.as_str())
}
/// Adds a single state
pub fn add_state<'a>(
&mut self,