pub enum JournalAs {
Edit,
Undo {
of: Rev,
},
Redo {
of: Rev,
},
}Expand description
Which stack a record’s entry lands on, and what it does to the other — the whole undo/redo policy, stated once.
It is also a durable record’s kind, in the only spelling this headless crate knows: a replayed log hands each record’s kind over as one of these, so a reopened document rebuilds its trail by running this policy rather than a second copy of it.
Variants§
Trait Implementations§
impl Copy for JournalAs
impl Eq for JournalAs
impl StructuralPartialEq for JournalAs
Auto Trait Implementations§
impl Freeze for JournalAs
impl RefUnwindSafe for JournalAs
impl Send for JournalAs
impl Sync for JournalAs
impl Unpin for JournalAs
impl UnsafeUnpin for JournalAs
impl UnwindSafe for JournalAs
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