pub struct StateRegistry { /* private fields */ }Expand description
Ordered registry of declared state names.
Implementations§
Source§impl StateRegistry
impl StateRegistry
Sourcepub fn register(&mut self, name: StateName) -> RuntimeResult<()>
pub fn register(&mut self, name: StateName) -> RuntimeResult<()>
Registers a state name, rejecting duplicates.
Trait Implementations§
Source§impl Debug for StateRegistry
impl Debug for StateRegistry
Source§impl Default for StateRegistry
impl Default for StateRegistry
Source§fn default() -> StateRegistry
fn default() -> StateRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StateRegistry
impl RefUnwindSafe for StateRegistry
impl Send for StateRegistry
impl Sync for StateRegistry
impl Unpin for StateRegistry
impl UnsafeUnpin for StateRegistry
impl UnwindSafe for StateRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more