pub struct SubtitleEvent {
pub start_time: Duration,
pub end_time: Duration,
pub text: String,
pub index: usize,
}Expand description
A single subtitle event with timing and text content.
Fields§
§start_time: DurationWhen this subtitle starts displaying.
end_time: DurationWhen this subtitle stops displaying.
text: StringThe text content of the subtitle. ASS formatting tags are stripped
for SubtitleFormat::Srt and SubtitleFormat::WebVtt output.
index: usizeThe zero-based index of this subtitle in the stream.
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 moreAuto Trait Implementations§
impl Freeze for SubtitleEvent
impl RefUnwindSafe for SubtitleEvent
impl Send for SubtitleEvent
impl Sync for SubtitleEvent
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more