pub struct EventAccessor<'a> { /* private fields */ }Expand description
Fluent accessor for individual event properties and operations
Implementations§
Source§impl<'a> EventAccessor<'a>
impl<'a> EventAccessor<'a>
Sourcepub fn timing(self) -> Result<Option<(String, String)>>
pub fn timing(self) -> Result<Option<(String, String)>>
Get event timing as (start, end) in centiseconds
Sourcepub fn start_time(self) -> Result<Option<String>>
pub fn start_time(self) -> Result<Option<String>>
Get event start time
Sourcepub fn event_type(self) -> Result<Option<EventType>>
pub fn event_type(self) -> Result<Option<EventType>>
Get event type (Dialogue/Comment)
Sourcepub fn margins(self) -> Result<Option<(String, String, String)>>
pub fn margins(self) -> Result<Option<(String, String, String)>>
Get event margins as (left, right, vertical)
Sourcepub fn timing_ops(self) -> EventTimer<'a>
pub fn timing_ops(self) -> EventTimer<'a>
Convert to timing operations for this specific event
Sourcepub fn toggle_ops(self) -> EventToggler<'a>
pub fn toggle_ops(self) -> EventToggler<'a>
Convert to toggle operations for this specific event
Sourcepub fn effect_ops(self) -> EventEffector<'a>
pub fn effect_ops(self) -> EventEffector<'a>
Convert to effect operations for this specific event
Auto Trait Implementations§
impl<'a> Freeze for EventAccessor<'a>
impl<'a> !RefUnwindSafe for EventAccessor<'a>
impl<'a> Send for EventAccessor<'a>
impl<'a> !Sync for EventAccessor<'a>
impl<'a> Unpin for EventAccessor<'a>
impl<'a> !UnwindSafe for EventAccessor<'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