pub struct SubtitleEvent {
pub index: usize,
pub start: Duration,
pub end: Duration,
pub text: String,
pub raw: String,
pub metadata: HashMap<String, String>,
}Expand description
A single subtitle event (cue).
Fields§
§index: usizeSequential 0-based event index.
start: DurationPresentation start time.
end: DurationPresentation end time.
text: StringPlain text with all style/override tags stripped.
raw: StringOriginal text including any style or override tags.
metadata: HashMap<String, String>Additional metadata fields (e.g. ASS Actor, Style).
Trait Implementations§
Source§impl Clone for SubtitleEvent
impl Clone for SubtitleEvent
Source§fn clone(&self) -> SubtitleEvent
fn clone(&self) -> SubtitleEvent
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 SubtitleEvent
impl Debug for SubtitleEvent
Source§impl PartialEq for SubtitleEvent
impl PartialEq for SubtitleEvent
impl Eq for SubtitleEvent
impl StructuralPartialEq for SubtitleEvent
Auto Trait Implementations§
impl Freeze for SubtitleEvent
impl RefUnwindSafe for SubtitleEvent
impl Send for SubtitleEvent
impl Sync for SubtitleEvent
impl Unpin for SubtitleEvent
impl UnsafeUnpin for SubtitleEvent
impl UnwindSafe for SubtitleEvent
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