pub struct DeleteEventCommand {
pub event_index: usize,
}Expand description
Command to delete a single event from the ASS document
Removes an event (Dialogue or Comment) at the specified index from the [Events] section.
The index is 0-based and includes both Dialogue and Comment events.
Fields§
§event_index: usizeIndex of the event to delete
Implementations§
Trait Implementations§
Source§impl Clone for DeleteEventCommand
impl Clone for DeleteEventCommand
Source§fn clone(&self) -> DeleteEventCommand
fn clone(&self) -> DeleteEventCommand
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 DeleteEventCommand
impl Debug for DeleteEventCommand
Source§impl EditorCommand for DeleteEventCommand
impl EditorCommand for DeleteEventCommand
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 DeleteEventCommand
Source§impl PartialEq for DeleteEventCommand
impl PartialEq for DeleteEventCommand
Source§fn eq(&self, other: &DeleteEventCommand) -> bool
fn eq(&self, other: &DeleteEventCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteEventCommand
Auto Trait Implementations§
impl Freeze for DeleteEventCommand
impl RefUnwindSafe for DeleteEventCommand
impl Send for DeleteEventCommand
impl Sync for DeleteEventCommand
impl Unpin for DeleteEventCommand
impl UnsafeUnpin for DeleteEventCommand
impl UnwindSafe for DeleteEventCommand
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