pub struct Cue {
pub start: TimeCode,
pub end: TimeCode,
pub text: String,
}Expand description
A Cue represents a single SRT / WebVTT cue extracted from a subtitle file:
14
00:01:14.815 --> 00:01:18.114
- This line belongs to a subtitle cue.
- This line is also a member of the same cue.Fields§
§start: TimeCodetimestamp for cue to appear
end: TimeCodetimestamp for cue to disappear
text: Stringtext for cue to display
Auto Trait Implementations§
impl Freeze for Cue
impl RefUnwindSafe for Cue
impl Send for Cue
impl Sync for Cue
impl Unpin for Cue
impl UnwindSafe for Cue
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