pub struct Transition<S> { /* private fields */ }
Expand description
Wrapper struct to enforce compile time checked state transitions of one state into another.
Implementations§
Source§impl<S> Transition<S>
impl<S> Transition<S>
pub fn to<T>(self, new_state: T) -> State<T>where
S: StateTransition<T>,
Auto Trait Implementations§
impl<S> Freeze for Transition<S>
impl<S> RefUnwindSafe for Transition<S>where
S: RefUnwindSafe,
impl<S> Send for Transition<S>where
S: Send,
impl<S> Sync for Transition<S>where
S: Sync,
impl<S> Unpin for Transition<S>where
S: Unpin,
impl<S> UnwindSafe for Transition<S>where
S: UnwindSafe,
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