pub struct BatchDeleteEventsCommand {
pub event_indices: Vec<usize>,
}Expand description
Command to delete multiple events from the ASS document
Removes multiple events (Dialogue or Comment) at the specified indices from the [Events] section.
Indices are automatically sorted and processed in reverse order to maintain correctness.
All indices are 0-based and include both Dialogue and Comment events.
Fields§
§event_indices: Vec<usize>Indices of events to delete (will be sorted and deduplicated)
Implementations§
Trait Implementations§
Source§impl Clone for BatchDeleteEventsCommand
impl Clone for BatchDeleteEventsCommand
Source§fn clone(&self) -> BatchDeleteEventsCommand
fn clone(&self) -> BatchDeleteEventsCommand
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 BatchDeleteEventsCommand
impl Debug for BatchDeleteEventsCommand
Source§impl EditorCommand for BatchDeleteEventsCommand
impl EditorCommand for BatchDeleteEventsCommand
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 memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Get the estimated memory usage of this command Read more
Source§fn modifies_content(&self) -> bool
fn modifies_content(&self) -> bool
Check if this command modifies document content Read more
impl Eq for BatchDeleteEventsCommand
Source§impl PartialEq for BatchDeleteEventsCommand
impl PartialEq for BatchDeleteEventsCommand
Source§fn eq(&self, other: &BatchDeleteEventsCommand) -> bool
fn eq(&self, other: &BatchDeleteEventsCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchDeleteEventsCommand
Auto Trait Implementations§
impl Freeze for BatchDeleteEventsCommand
impl RefUnwindSafe for BatchDeleteEventsCommand
impl Send for BatchDeleteEventsCommand
impl Sync for BatchDeleteEventsCommand
impl Unpin for BatchDeleteEventsCommand
impl UnsafeUnpin for BatchDeleteEventsCommand
impl UnwindSafe for BatchDeleteEventsCommand
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