pub struct IncrementalInsertCommand {
pub position: Position,
pub text: String,
}Expand description
Insert text command with delta tracking
Fields§
§position: Position§text: StringImplementations§
Trait Implementations§
Source§impl Clone for IncrementalInsertCommand
impl Clone for IncrementalInsertCommand
Source§fn clone(&self) -> IncrementalInsertCommand
fn clone(&self) -> IncrementalInsertCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IncrementalInsertCommand
impl Debug for IncrementalInsertCommand
Source§impl DeltaCommand for IncrementalInsertCommand
impl DeltaCommand for IncrementalInsertCommand
Source§fn execute_with_delta(
&self,
document: &mut EditorDocument,
) -> Result<CommandResult>
fn execute_with_delta( &self, document: &mut EditorDocument, ) -> Result<CommandResult>
Execute the command and return the result with delta information
Source§fn description(&self) -> String
fn description(&self) -> String
Get command description for history
Source§fn supports_incremental(&self) -> bool
fn supports_incremental(&self) -> bool
Check if this command can be executed incrementally
Auto Trait Implementations§
impl Freeze for IncrementalInsertCommand
impl RefUnwindSafe for IncrementalInsertCommand
impl Send for IncrementalInsertCommand
impl Sync for IncrementalInsertCommand
impl Unpin for IncrementalInsertCommand
impl UnsafeUnpin for IncrementalInsertCommand
impl UnwindSafe for IncrementalInsertCommand
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