pub struct Cue {
pub start_ms: u64,
pub end_ms: u64,
pub lines: Vec<String>,
pub first_word: usize,
pub last_word: usize,
}Expand description
One caption cue on the output timeline. Cues never overlap.
Fields§
§start_ms: u64§end_ms: u64§lines: Vec<String>Display lines (already broken; at most max_lines unless a single word
is longer than a line).
first_word: usizeIndex range [first_word, last_word] into the normalized word list.
last_word: usizeImplementations§
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