Enum redo::Merge [−][src]
pub enum Merge<C> { Yes, No(C), Annul, }
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
impl<C: Copy> Copy for Merge<C>
[src]
impl<C: Copy> Copy for Merge<C>
impl<C: Clone> Clone for Merge<C>
[src]
impl<C: Clone> Clone for Merge<C>
fn clone(&self) -> Merge<C>
[src]
fn clone(&self) -> Merge<C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<C: Debug> Debug for Merge<C>
[src]
impl<C: Debug> Debug for Merge<C>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<C: Hash> Hash for Merge<C>
[src]
impl<C: Hash> Hash for Merge<C>
fn hash<__HC: Hasher>(&self, state: &mut __HC)
[src]
fn hash<__HC: Hasher>(&self, state: &mut __HC)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<C: Ord> Ord for Merge<C>
[src]
impl<C: Ord> Ord for Merge<C>
fn cmp(&self, other: &Merge<C>) -> Ordering
[src]
fn cmp(&self, other: &Merge<C>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<C: PartialOrd> PartialOrd for Merge<C>
[src]
impl<C: PartialOrd> PartialOrd for Merge<C>
fn partial_cmp(&self, other: &Merge<C>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Merge<C>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Merge<C>) -> bool
[src]
fn lt(&self, other: &Merge<C>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Merge<C>) -> bool
[src]
fn le(&self, other: &Merge<C>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Merge<C>) -> bool
[src]
fn gt(&self, other: &Merge<C>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Merge<C>) -> bool
[src]
fn ge(&self, other: &Merge<C>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<C: Eq> Eq for Merge<C>
[src]
impl<C: Eq> Eq for Merge<C>
impl<C: PartialEq> PartialEq for Merge<C>
[src]
impl<C: PartialEq> PartialEq for Merge<C>