pub struct DeleteTextCommand {
pub range: Range,
pub description: Option<String>,
}
Expand description
Text deletion command
Fields§
§range: Range
Range of text to delete
description: Option<String>
Optional description override
Implementations§
Trait Implementations§
Source§impl Clone for DeleteTextCommand
impl Clone for DeleteTextCommand
Source§fn clone(&self) -> DeleteTextCommand
fn clone(&self) -> DeleteTextCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeleteTextCommand
impl Debug for DeleteTextCommand
Source§impl EditorCommand for DeleteTextCommand
impl EditorCommand for DeleteTextCommand
Source§fn execute(&self, document: &mut EditorDocument) -> Result<CommandResult>
fn execute(&self, document: &mut EditorDocument) -> Result<CommandResult>
Execute the command on the given document Read more
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get a human-readable description of the command
Source§fn modifies_content(&self) -> bool
fn modifies_content(&self) -> bool
Check if this command modifies document content Read more
Source§fn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Get the estimated memory usage of this command Read more
Source§impl PartialEq for DeleteTextCommand
impl PartialEq for DeleteTextCommand
impl Eq for DeleteTextCommand
impl StructuralPartialEq for DeleteTextCommand
Auto Trait Implementations§
impl Freeze for DeleteTextCommand
impl RefUnwindSafe for DeleteTextCommand
impl Send for DeleteTextCommand
impl Sync for DeleteTextCommand
impl Unpin for DeleteTextCommand
impl UnwindSafe for DeleteTextCommand
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