pub struct EventQuery<'a> { /* private fields */ }Expand description
Main query builder for filtering and sorting events
Implementations§
Source§impl<'a> EventQuery<'a>
impl<'a> EventQuery<'a>
pub fn filter(self, filter: EventFilter) -> Self
pub fn filter_by_type(self, event_type: EventType) -> Self
pub fn filter_by_style(self, pattern: &str) -> Self
pub fn filter_by_speaker(self, pattern: &str) -> Self
pub fn filter_by_text(self, pattern: &str) -> Self
pub fn filter_by_time_range(self, start_cs: u32, end_cs: u32) -> Self
pub fn filter_by_layer(self, layer: u32) -> Self
pub fn filter_by_effect(self, pattern: &str) -> Self
pub fn with_regex(self, use_regex: bool) -> Self
pub fn case_sensitive(self, case_sensitive: bool) -> Self
pub fn sort(self, criteria: EventSortCriteria) -> Self
pub fn sort_by(self, options: EventSortOptions) -> Self
pub fn sort_by_time(self) -> Self
pub fn sort_by_style(self) -> Self
pub fn sort_by_duration(self) -> Self
pub fn descending(self) -> Self
pub fn then_by(self, criteria: EventSortCriteria) -> Self
pub fn limit(self, count: usize) -> Self
pub fn take(self, count: usize) -> Self
pub fn execute(self) -> Result<Vec<EventInfo>>
Sourcepub fn with_indices(self) -> Result<Vec<(usize, OwnedEvent)>>
pub fn with_indices(self) -> Result<Vec<(usize, OwnedEvent)>>
Execute and return events with their indices as tuples
Sourcepub fn timing(self) -> Result<EventTimer<'a>>
pub fn timing(self) -> Result<EventTimer<'a>>
Chain with existing fluent operations
pub fn toggle_type(self) -> Result<EventToggler<'a>>
pub fn effects(self) -> Result<EventEffector<'a>>
Auto Trait Implementations§
impl<'a> Freeze for EventQuery<'a>
impl<'a> !RefUnwindSafe for EventQuery<'a>
impl<'a> Send for EventQuery<'a>
impl<'a> !Sync for EventQuery<'a>
impl<'a> Unpin for EventQuery<'a>
impl<'a> !UnwindSafe for EventQuery<'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