Enum cosmic_undo_2::Action
source · pub enum Action<T> {
Do(T),
Undo(T),
}
Expand description
Action that the application must performed to undo or redo
The type parameter T
is the command type.
Variants§
Do(T)
The client shall do the command refered by the inner parameter.
Undo(T)
The client shall undo the command refered by the inner parameter.
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Action<T>
impl<T: PartialEq> PartialEq for Action<T>
impl<T: Copy> Copy for Action<T>
impl<T: Eq> Eq for Action<T>
impl<T> StructuralEq for Action<T>
impl<T> StructuralPartialEq for Action<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Action<T>where T: RefUnwindSafe,
impl<T> Send for Action<T>where T: Send,
impl<T> Sync for Action<T>where T: Sync,
impl<T> Unpin for Action<T>where T: Unpin,
impl<T> UnwindSafe for Action<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