pub struct LeftAgreeMutator;Expand description
A left-agreement mutator: if the left and right maps are equal, the result is the left, otherwise, a deletion is performed
Trait Implementations§
Source§impl<K, V> BinaryMutator<K, V> for LeftAgreeMutator
impl<K, V> BinaryMutator<K, V> for LeftAgreeMutator
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 LeftAgreeMutator
impl<K, L, R> BinaryTransformer<K, L, R, L> for LeftAgreeMutator
Source§impl Clone for LeftAgreeMutator
impl Clone for LeftAgreeMutator
Source§fn clone(&self) -> LeftAgreeMutator
fn clone(&self) -> LeftAgreeMutator
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 LeftAgreeMutator
impl Debug for LeftAgreeMutator
Source§impl Hash for LeftAgreeMutator
impl Hash for LeftAgreeMutator
Source§impl Ord for LeftAgreeMutator
impl Ord for LeftAgreeMutator
Source§fn cmp(&self, other: &LeftAgreeMutator) -> Ordering
fn cmp(&self, other: &LeftAgreeMutator) -> 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 LeftAgreeMutator
impl PartialEq for LeftAgreeMutator
Source§impl PartialOrd for LeftAgreeMutator
impl PartialOrd for LeftAgreeMutator
impl Copy for LeftAgreeMutator
impl Eq for LeftAgreeMutator
impl StructuralPartialEq for LeftAgreeMutator
Auto Trait Implementations§
impl Freeze for LeftAgreeMutator
impl RefUnwindSafe for LeftAgreeMutator
impl Send for LeftAgreeMutator
impl Sync for LeftAgreeMutator
impl Unpin for LeftAgreeMutator
impl UnwindSafe for LeftAgreeMutator
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