pub enum MutationState {
Replace,
Append(usize),
}Expand description
State of mutations tracked by a StatefulObserver(crate::StatefulObserver).
This enum represents the specific type of mutation that has been detected by observers that implement StatefulObserver.
Variants§
Replace
Complete replacement of the value
Append(usize)
Append operation starting from the given index
Trait Implementations§
Source§impl Clone for MutationState
impl Clone for MutationState
Source§fn clone(&self) -> MutationState
fn clone(&self) -> MutationState
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 moreimpl Copy for MutationState
Auto Trait Implementations§
impl Freeze for MutationState
impl RefUnwindSafe for MutationState
impl Send for MutationState
impl Sync for MutationState
impl Unpin for MutationState
impl UnwindSafe for MutationState
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