enum SingleOrManyStates<S, M> {
    Single(S),
    Many(M),
}Expand description
Container that signifies storing both different things if there is a single state or many different states involved in the operation.
Variants§
Trait Implementations§
Source§impl<S: Clone, M: Clone> Clone for SingleOrManyStates<S, M>
 
impl<S: Clone, M: Clone> Clone for SingleOrManyStates<S, M>
Source§fn clone(&self) -> SingleOrManyStates<S, M>
 
fn clone(&self) -> SingleOrManyStates<S, M>
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 moreAuto Trait Implementations§
impl<S, M> Freeze for SingleOrManyStates<S, M>
impl<S, M> RefUnwindSafe for SingleOrManyStates<S, M>where
    S: RefUnwindSafe,
    M: RefUnwindSafe,
impl<S, M> Send for SingleOrManyStates<S, M>
impl<S, M> Sync for SingleOrManyStates<S, M>
impl<S, M> Unpin for SingleOrManyStates<S, M>
impl<S, M> UnwindSafe for SingleOrManyStates<S, M>where
    S: UnwindSafe,
    M: 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