pub struct IncrementalEventEditCommand {
pub old_text: String,
pub new_text: String,
}Expand description
ASS-aware event edit command with delta tracking
Fields§
§old_text: String§new_text: StringImplementations§
Trait Implementations§
Source§impl Clone for IncrementalEventEditCommand
impl Clone for IncrementalEventEditCommand
Source§fn clone(&self) -> IncrementalEventEditCommand
fn clone(&self) -> IncrementalEventEditCommand
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 IncrementalEventEditCommand
impl Debug for IncrementalEventEditCommand
Source§impl DeltaCommand for IncrementalEventEditCommand
impl DeltaCommand for IncrementalEventEditCommand
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 IncrementalEventEditCommand
impl RefUnwindSafe for IncrementalEventEditCommand
impl Send for IncrementalEventEditCommand
impl Sync for IncrementalEventEditCommand
impl Unpin for IncrementalEventEditCommand
impl UnsafeUnpin for IncrementalEventEditCommand
impl UnwindSafe for IncrementalEventEditCommand
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