pub struct Transaction {
pub changes: ChangeSet,
pub inverse: ChangeSet,
pub before: Selections,
pub after: Selections,
pub origin: EditorId,
}Expand description
One committed change with what is needed to revert it.
Fields§
§changes: ChangeSet§inverse: ChangeSet§before: Selections§after: Selections§origin: EditorIdThe editor that made the change; its selections are restored on undo.
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Auto Trait Implementations§
impl Forget for Transaction
impl Freeze for Transaction
impl Move for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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