pub struct Cue {
pub start: MediaTime,
pub end: MediaTime,
pub text: String,
}Expand description
A single extracted caption cue: display text plus its media-timeline span.
start/end are wrap-unrolled 90 kHz MediaTime instants (see
crate::timeline). text may contain embedded \n for multi-line
captions (e.g. a 2-row CEA-608 roll-up window); crate::webvtt::cue_block
emits each line of text as its own WebVTT payload line.
Fields§
§start: MediaTimeCue start: the commit-event PTS (CEA-608 EOC / roll-up row reveal /
CEA-708 window-visible transition) — see crate::webvtt module docs.
end: MediaTimeCue end: the PTS of the next erase/replace event.
text: StringCue display text: plain, unescaped, unstyled (see crate::webvtt
module docs on documented losses).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cue
impl<'de> Deserialize<'de> for Cue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Cue
impl StructuralPartialEq for Cue
Auto Trait Implementations§
impl Freeze for Cue
impl RefUnwindSafe for Cue
impl Send for Cue
impl Sync for Cue
impl Unpin for Cue
impl UnsafeUnpin 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