pub struct UndoStatus {
pub can_undo: bool,
pub can_redo: bool,
pub undo_summary: Option<String>,
pub redo_summary: Option<String>,
}Expand description
What the live editing history of a page can do right now, as its engine reports it.
Fields§
§can_undo: bool§can_redo: bool§undo_summary: Option<String>§redo_summary: Option<String>Implementations§
Source§impl UndoStatus
impl UndoStatus
Sourcepub fn can(&self, which: UndoRequest) -> bool
pub fn can(&self, which: UndoRequest) -> bool
Whether the verb which is available.
pub fn summary(&self, which: UndoRequest) -> Option<&str>
Sourcepub fn description(&self, which: UndoRequest) -> String
pub fn description(&self, which: UndoRequest) -> String
The sentence an assistive technology should hear as the control’s description:
what the verb would do, or the reason it is unavailable. "Nothing to undo" when
unavailable — never a description of an action that is not there.
Trait Implementations§
Source§impl Clone for UndoStatus
impl Clone for UndoStatus
Source§impl Debug for UndoStatus
impl Debug for UndoStatus
Source§impl Default for UndoStatus
impl Default for UndoStatus
impl Eq for UndoStatus
Source§impl PartialEq for UndoStatus
impl PartialEq for UndoStatus
impl StructuralPartialEq for UndoStatus
Auto Trait Implementations§
impl Forget for UndoStatus
impl Freeze for UndoStatus
impl Move for UndoStatus
impl RefUnwindSafe for UndoStatus
impl Send for UndoStatus
impl Sync for UndoStatus
impl Unpin for UndoStatus
impl UnsafeUnpin for UndoStatus
impl UnwindSafe for UndoStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.