pub struct WidgetTextEditCmd { /* private fields */ }Expand description
A widget undo command for text editing.
Implementations§
Source§impl WidgetTextEditCmd
impl WidgetTextEditCmd
Sourcepub fn new(widget_id: UndoWidgetId, operation: TextEditOperation) -> Self
pub fn new(widget_id: UndoWidgetId, operation: TextEditOperation) -> Self
Create a new text edit command.
Sourcepub fn with_apply<F>(self, f: F) -> Self
pub fn with_apply<F>(self, f: F) -> Self
Set the apply callback (builder).
Sourcepub fn widget_id(&self) -> UndoWidgetId
pub fn widget_id(&self) -> UndoWidgetId
Get the widget ID.
Sourcepub fn operation(&self) -> &TextEditOperation
pub fn operation(&self) -> &TextEditOperation
Get the operation.
Source§impl WidgetTextEditCmd
impl WidgetTextEditCmd
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get the description.
Sourcepub fn size_bytes(&self) -> usize
pub fn size_bytes(&self) -> usize
Get the size in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WidgetTextEditCmd
impl !RefUnwindSafe for WidgetTextEditCmd
impl Send for WidgetTextEditCmd
impl Sync for WidgetTextEditCmd
impl Unpin for WidgetTextEditCmd
impl !UnwindSafe for WidgetTextEditCmd
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