pub struct ValueType<T>{ /* private fields */ }Expand description
Value type like a memory undo/redo type. Rundo will clone its origin value as a backup, so Clone must be implemented. Be careful use it for struct or other big size type, OpType is design for this scenario, or you must implment your custrom rundo type.
Trait Implementations§
Source§impl<T> DerefMut for ValueType<T>
when user try to get a mut refercence, Rundo know what changed in the later.
impl<T> DerefMut for ValueType<T>
when user try to get a mut refercence, Rundo know what changed in the later.
Source§impl<T> Rundo for ValueType<T>
impl<T> Rundo for ValueType<T>
Auto Trait Implementations§
impl<T> Freeze for ValueType<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValueType<T>where
T: RefUnwindSafe,
impl<T> Send for ValueType<T>where
T: Send,
impl<T> Sync for ValueType<T>where
T: Sync,
impl<T> Unpin for ValueType<T>where
T: Unpin,
impl<T> UnsafeUnpin for ValueType<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ValueType<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