pub struct StoreSnapshot { /* private fields */ }Expand description
Type-erased store snapshot for undo fast path.
Implementations§
Source§impl StoreSnapshot
impl StoreSnapshot
pub fn new<T: StoreSnapshotTrait + 'static>(inner: T) -> Self
pub fn downcast_ref<T: 'static>(&self) -> Option<&T>
Trait Implementations§
Source§impl Clone for StoreSnapshot
impl Clone for StoreSnapshot
Source§fn clone(&self) -> StoreSnapshot
fn clone(&self) -> StoreSnapshot
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 moreAuto Trait Implementations§
impl Freeze for StoreSnapshot
impl !RefUnwindSafe for StoreSnapshot
impl Send for StoreSnapshot
impl Sync for StoreSnapshot
impl Unpin for StoreSnapshot
impl UnsafeUnpin for StoreSnapshot
impl !UnwindSafe for StoreSnapshot
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