List states
This commit is contained in:
parent
ed9fdcefeb
commit
304a29397b
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue