Enum yrs::types::EntryChange
source · pub enum EntryChange {
Inserted(Value),
Updated(Value, Value),
Removed(Value),
}
Expand description
A single change done over a map-component of shared data type.
Variants§
Inserted(Value)
Informs about a new value inserted under specified entry.
Updated(Value, Value)
Informs about a change of old value (1st field) to a new one (2nd field) under a corresponding entry.
Removed(Value)
Informs about a removal of a corresponding entry - contains a removed value.
Trait Implementations§
source§impl Clone for EntryChange
impl Clone for EntryChange
source§fn clone(&self) -> EntryChange
fn clone(&self) -> EntryChange
Returns a copy 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 EntryChange
impl Debug for EntryChange
source§impl PartialEq for EntryChange
impl PartialEq for EntryChange
source§fn eq(&self, other: &EntryChange) -> bool
fn eq(&self, other: &EntryChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntryChange
Auto Trait Implementations§
impl Freeze for EntryChange
impl !RefUnwindSafe for EntryChange
impl !Send for EntryChange
impl !Sync for EntryChange
impl Unpin for EntryChange
impl !UnwindSafe for EntryChange
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