pub struct EventDeleter<'a> { /* private fields */ }Expand description
Fluent API for deleting events based on queries
Implementations§
Source§impl<'a> EventDeleter<'a>
impl<'a> EventDeleter<'a>
Sourcepub fn by_indices(self, indices: Vec<usize>) -> Self
pub fn by_indices(self, indices: Vec<usize>) -> Self
Delete events by their indices
Sourcepub fn dialogues(self) -> Result<&'a mut EditorDocument>
pub fn dialogues(self) -> Result<&'a mut EditorDocument>
Delete all dialogue events
Sourcepub fn comments(self) -> Result<&'a mut EditorDocument>
pub fn comments(self) -> Result<&'a mut EditorDocument>
Delete all comment events
Sourcepub fn in_time_range(
self,
start_cs: u32,
end_cs: u32,
) -> Result<&'a mut EditorDocument>
pub fn in_time_range( self, start_cs: u32, end_cs: u32, ) -> Result<&'a mut EditorDocument>
Delete events in a time range
Sourcepub fn with_style(self, style: &str) -> Result<&'a mut EditorDocument>
pub fn with_style(self, style: &str) -> Result<&'a mut EditorDocument>
Delete events with a specific style
Sourcepub fn containing(self, text: &str) -> Result<&'a mut EditorDocument>
pub fn containing(self, text: &str) -> Result<&'a mut EditorDocument>
Delete events containing specific text
Sourcepub fn all(self) -> Result<&'a mut EditorDocument>
pub fn all(self) -> Result<&'a mut EditorDocument>
Delete all events
Sourcepub fn execute(self) -> Result<&'a mut EditorDocument>
pub fn execute(self) -> Result<&'a mut EditorDocument>
Execute deletion with the configured indices
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EventDeleter<'a>
impl<'a> !Sync for EventDeleter<'a>
impl<'a> !UnwindSafe for EventDeleter<'a>
impl<'a> Freeze for EventDeleter<'a>
impl<'a> Send for EventDeleter<'a>
impl<'a> Unpin for EventDeleter<'a>
impl<'a> UnsafeUnpin for EventDeleter<'a>
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