pub struct DeltaBatchCommand { /* private fields */ }Expand description
Batch command that executes multiple delta commands efficiently
Implementations§
Source§impl DeltaBatchCommand
impl DeltaBatchCommand
Sourcepub fn add_command<T: DeltaCommand + 'static>(self, command: T) -> Self
pub fn add_command<T: DeltaCommand + 'static>(self, command: T) -> Self
Add a command to the batch
Sourcepub fn execute_batch(
&self,
document: &mut EditorDocument,
) -> Result<Vec<CommandResult>>
pub fn execute_batch( &self, document: &mut EditorDocument, ) -> Result<Vec<CommandResult>>
Execute all commands in the batch
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DeltaBatchCommand
impl !Send for DeltaBatchCommand
impl !Sync for DeltaBatchCommand
impl !UnwindSafe for DeltaBatchCommand
impl Freeze for DeltaBatchCommand
impl Unpin for DeltaBatchCommand
impl UnsafeUnpin for DeltaBatchCommand
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