pub struct SubtitleCue {
pub start_us: i64,
pub end_us: i64,
pub style_ref: Option<String>,
pub positioning: Option<CuePosition>,
pub segments: Vec<Segment>,
}Expand description
A single displayable subtitle event.
Fields§
§start_us: i64Cue start, microseconds from stream start.
end_us: i64Cue end, microseconds from stream start.
style_ref: Option<String>Optional style name this cue inherits from. References an entry in
the track-level style table (ASS Style: rows or WebVTT ::cue(.X) rules).
positioning: Option<CuePosition>Optional overriding position for this cue. None → use the style default.
segments: Vec<Segment>Cue body as a sequence of styled segments.
Trait Implementations§
Source§impl Clone for SubtitleCue
impl Clone for SubtitleCue
Source§fn clone(&self) -> SubtitleCue
fn clone(&self) -> SubtitleCue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubtitleCue
impl Debug for SubtitleCue
Source§impl Default for SubtitleCue
impl Default for SubtitleCue
Source§fn default() -> SubtitleCue
fn default() -> SubtitleCue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubtitleCue
impl RefUnwindSafe for SubtitleCue
impl Send for SubtitleCue
impl Sync for SubtitleCue
impl Unpin for SubtitleCue
impl UnsafeUnpin for SubtitleCue
impl UnwindSafe for SubtitleCue
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