pub struct Transition<S: Clone> {
pub before: S,
pub after: S,
}Expand description
A state transition: a pair (pre-state, post-state).
Fields§
§before: SState before.
after: SState after.
Implementations§
Trait Implementations§
Source§impl<S: Clone + Clone> Clone for Transition<S>
impl<S: Clone + Clone> Clone for Transition<S>
Source§fn clone(&self) -> Transition<S>
fn clone(&self) -> Transition<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<S: Eq + Clone> Eq for Transition<S>
impl<S: Clone> StructuralPartialEq for Transition<S>
Auto Trait Implementations§
impl<S> Freeze for Transition<S>where
S: Freeze,
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> UnsafeUnpin for Transition<S>where
S: UnsafeUnpin,
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