pub enum Merged<E> {
Yes,
No(E),
Annul,
}
Expand description
Says if the Edit
command have been merged with another command.
Variants§
Yes
The edits have been merged.
This means that the other
edit will not be added to the stack.
No(E)
The edits have not been merged.
We need to return the other
edit so it can be added to the stack.
Annul
The two edits cancels each other out.
This means that both edits will be removed from the stack.
Trait Implementations§
impl<E: Copy> Copy for Merged<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for Merged<E>where E: RefUnwindSafe,
impl<E> Send for Merged<E>where E: Send,
impl<E> Sync for Merged<E>where E: Sync,
impl<E> Unpin for Merged<E>where E: Unpin,
impl<E> UnwindSafe for Merged<E>where E: 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