pub struct Owning<T, Undo: FnOnce(T) -> T> { /* private fields */ }Expand description
Caries an undo operation + an owned mutable value
See own for examples
Implementations§
Trait Implementations§
Source§impl<T, Undo: FnOnce(T) -> T> Atom for Owning<T, Undo>
impl<T, Undo: FnOnce(T) -> T> Atom for Owning<T, Undo>
Auto Trait Implementations§
impl<T, Undo> Freeze for Owning<T, Undo>
impl<T, Undo> RefUnwindSafe for Owning<T, Undo>where
T: RefUnwindSafe,
Undo: RefUnwindSafe,
impl<T, Undo> Send for Owning<T, Undo>
impl<T, Undo> Sync for Owning<T, Undo>
impl<T, Undo> Unpin for Owning<T, Undo>
impl<T, Undo> UnwindSafe for Owning<T, Undo>where
T: UnwindSafe,
Undo: 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