pub struct AdditiveMapDiff { /* private fields */ }Expand description
Represents the difference between two AdditiveMaps.
Implementations§
source§impl AdditiveMapDiff
impl AdditiveMapDiff
sourcepub fn new(
left: AdditiveMap<Key, Transform>,
right: AdditiveMap<Key, Transform>
) -> Self
pub fn new( left: AdditiveMap<Key, Transform>, right: AdditiveMap<Key, Transform> ) -> Self
Creates a diff from two AdditiveMaps.
sourcepub fn left(&self) -> &AdditiveMap<Key, Transform>
pub fn left(&self) -> &AdditiveMap<Key, Transform>
Returns the entries that are unique to the left input.
sourcepub fn right(&self) -> &AdditiveMap<Key, Transform>
pub fn right(&self) -> &AdditiveMap<Key, Transform>
Returns the entries that are unique to the right input.
sourcepub fn both(&self) -> &AdditiveMap<Key, Transform>
pub fn both(&self) -> &AdditiveMap<Key, Transform>
Returns the entries shared by both inputs.
Trait Implementations§
source§impl Debug for AdditiveMapDiff
impl Debug for AdditiveMapDiff
source§impl Default for AdditiveMapDiff
impl Default for AdditiveMapDiff
source§fn default() -> AdditiveMapDiff
fn default() -> AdditiveMapDiff
Returns the “default value” for a type. Read more
source§impl PartialEq for AdditiveMapDiff
impl PartialEq for AdditiveMapDiff
source§fn eq(&self, other: &AdditiveMapDiff) -> bool
fn eq(&self, other: &AdditiveMapDiff) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AdditiveMapDiff
impl StructuralPartialEq for AdditiveMapDiff
Auto Trait Implementations§
impl RefUnwindSafe for AdditiveMapDiff
impl Send for AdditiveMapDiff
impl Sync for AdditiveMapDiff
impl Unpin for AdditiveMapDiff
impl UnwindSafe for AdditiveMapDiff
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.