#[non_exhaustive]pub enum Event {
Undo(bool),
Redo(bool),
Saved(bool),
Root(usize),
Index(usize),
}
Expand description
Describes an event on the structures.
See Slot
for more information.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Undo(bool)
Emitted when the structures ability to undo has changed.
Redo(bool)
Emitted when the structures ability to redo has changed.
Saved(bool)
Emitted when the saved state has changed.
Root(usize)
Emitted when the root has changed.
Index(usize)
Emitted when the index has changed.
Trait Implementations§
source§impl PartialEq for Event
impl PartialEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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