pub struct Snapshot<T> { /* private fields */ }Expand description
A snapshot of the whole state of a container.
Implementations§
Trait Implementations§
Source§impl<T: Clone> ApplyEdit<T> for Snapshot<T>
impl<T: Clone> ApplyEdit<T> for Snapshot<T>
Source§fn apply_edit(self, target: &mut T)
fn apply_edit(self, target: &mut T)
Apply an edit.
Source§impl<'de, T> Deserialize<'de> for Snapshot<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Snapshot<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Clone> ExtractEdit<T> for Snapshot<T>
impl<T: Clone> ExtractEdit<T> for Snapshot<T>
Source§fn extract_edit(target: &mut T) -> Self
fn extract_edit(target: &mut T) -> Self
Extract an edit corresponding to the current state. Read more
Source§impl<T: PartialEq> PartialEq for Snapshot<T>
impl<T: PartialEq> PartialEq for Snapshot<T>
Source§impl<T: Clone> RevertEdit<T> for Snapshot<T>
impl<T: Clone> RevertEdit<T> for Snapshot<T>
Source§fn revert_edit(self, target: &mut T) -> Self
fn revert_edit(self, target: &mut T) -> Self
Revert an edit and return an edit that reverts the revert. Read more
impl<T: PartialEq> StructuralPartialEq for Snapshot<T>
Auto Trait Implementations§
impl<T> Freeze for Snapshot<T>where
T: Freeze,
impl<T> RefUnwindSafe for Snapshot<T>where
T: RefUnwindSafe,
impl<T> Send for Snapshot<T>where
T: Send,
impl<T> Sync for Snapshot<T>where
T: Sync,
impl<T> Unpin for Snapshot<T>where
T: Unpin,
impl<T> UnsafeUnpin for Snapshot<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Snapshot<T>where
T: UnwindSafe,
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