pub enum Merge<C> {
Yes,
No(C),
Annul,
}
Expand description
The result of merging two commands.
Variants
Yes
The commands have been merged.
No(C)
The commands have not been merged.
Annul
The two commands cancels each other out. This removes both commands.
Trait Implementations
sourceimpl<C: Ord> Ord for Merge<C>
impl<C: Ord> Ord for Merge<C>
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<C: PartialEq> PartialEq<Merge<C>> for Merge<C>
impl<C: PartialEq> PartialEq<Merge<C>> for Merge<C>
sourceimpl<C: PartialOrd> PartialOrd<Merge<C>> for Merge<C>
impl<C: PartialOrd> PartialOrd<Merge<C>> for Merge<C>
sourcefn partial_cmp(&self, other: &Merge<C>) -> Option<Ordering>
fn partial_cmp(&self, other: &Merge<C>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<C: Copy> Copy for Merge<C>
impl<C: Eq> Eq for Merge<C>
impl<C> StructuralEq for Merge<C>
impl<C> StructuralPartialEq for Merge<C>
Auto Trait Implementations
impl<C> RefUnwindSafe for Merge<C>where
C: RefUnwindSafe,
impl<C> Send for Merge<C>where
C: Send,
impl<C> Sync for Merge<C>where
C: Sync,
impl<C> Unpin for Merge<C>where
C: Unpin,
impl<C> UnwindSafe for Merge<C>where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more