pub struct UndoHistoryValue {
pub can_undo: bool,
pub can_redo: bool,
}Expand description
Represents whether the current undo stack can undo or redo.
Fields§
§can_undo: boolWhether the current undo stack can perform an undo operation.
can_redo: boolWhether the current undo stack can perform a redo operation.
Implementations§
Source§impl UndoHistoryValue
impl UndoHistoryValue
Sourcepub const EMPTY: UndoHistoryValue
pub const EMPTY: UndoHistoryValue
A value corresponding to an undo stack that can neither undo nor redo.
Sourcepub const fn new() -> UndoHistoryValue
pub const fn new() -> UndoHistoryValue
Sourcepub const fn can_undo(self, can_undo: bool) -> UndoHistoryValue
pub const fn can_undo(self, can_undo: bool) -> UndoHistoryValue
Dart UndoHistoryValue(canUndo:).
Sourcepub const fn can_redo(self, can_redo: bool) -> UndoHistoryValue
pub const fn can_redo(self, can_redo: bool) -> UndoHistoryValue
Dart UndoHistoryValue(canRedo:).
Trait Implementations§
Source§impl Clone for UndoHistoryValue
impl Clone for UndoHistoryValue
impl Copy for UndoHistoryValue
Source§impl Debug for UndoHistoryValue
impl Debug for UndoHistoryValue
Source§impl Default for UndoHistoryValue
impl Default for UndoHistoryValue
Source§fn default() -> UndoHistoryValue
fn default() -> UndoHistoryValue
Returns the “default value” for a type. Read more
Source§impl Display for UndoHistoryValue
impl Display for UndoHistoryValue
impl Eq for UndoHistoryValue
Source§impl Hash for UndoHistoryValue
impl Hash for UndoHistoryValue
Source§impl PartialEq for UndoHistoryValue
impl PartialEq for UndoHistoryValue
impl StructuralPartialEq for UndoHistoryValue
Auto Trait Implementations§
impl Forget for UndoHistoryValue
impl Freeze for UndoHistoryValue
impl Move for UndoHistoryValue
impl RefUnwindSafe for UndoHistoryValue
impl Send for UndoHistoryValue
impl Sync for UndoHistoryValue
impl Unpin for UndoHistoryValue
impl UnsafeUnpin for UndoHistoryValue
impl UnwindSafe for UndoHistoryValue
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.