pub struct LeftMutator;Expand description
A mutator which always takes the left tree
Trait Implementations§
Source§impl<K, V> BinaryMutator<K, V> for LeftMutatorwhere
V: Clone,
impl<K, V> BinaryMutator<K, V> for LeftMutatorwhere
V: Clone,
Source§fn kind(&mut self) -> BinaryMutatorKind
fn kind(&mut self) -> BinaryMutatorKind
The kind of this mutator, if it can be specially optimized
Source§fn mutate_bin(
&mut self,
_key: &K,
_left: &V,
_right: &V,
) -> BinaryResult<Option<V>>
fn mutate_bin( &mut self, _key: &K, _left: &V, _right: &V, ) -> BinaryResult<Option<V>>
Mutate a value: should be the same as
transform_bin, except sometimes returning UnaryResult::Left/Right
when the output would be equal to the inputSource§impl<K, L, R> BinaryTransformer<K, L, R, L> for LeftMutatorwhere
L: Clone,
impl<K, L, R> BinaryTransformer<K, L, R, L> for LeftMutatorwhere
L: Clone,
Source§impl Clone for LeftMutator
impl Clone for LeftMutator
Source§fn clone(&self) -> LeftMutator
fn clone(&self) -> LeftMutator
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 moreSource§impl Debug for LeftMutator
impl Debug for LeftMutator
Source§impl Hash for LeftMutator
impl Hash for LeftMutator
Source§impl Ord for LeftMutator
impl Ord for LeftMutator
Source§fn cmp(&self, other: &LeftMutator) -> Ordering
fn cmp(&self, other: &LeftMutator) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for LeftMutator
impl PartialEq for LeftMutator
Source§impl PartialOrd for LeftMutator
impl PartialOrd for LeftMutator
impl Copy for LeftMutator
impl Eq for LeftMutator
impl StructuralPartialEq for LeftMutator
Auto Trait Implementations§
impl Freeze for LeftMutator
impl RefUnwindSafe for LeftMutator
impl Send for LeftMutator
impl Sync for LeftMutator
impl Unpin for LeftMutator
impl UnwindSafe for LeftMutator
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