pub struct SrtEntry {
pub index: u32,
pub start_ms: u64,
pub end_ms: u64,
pub text: Vec<String>,
}Expand description
A single SRT subtitle entry.
Fields§
§index: u321-based sequence number.
start_ms: u64Start time in milliseconds.
end_ms: u64End time in milliseconds.
text: Vec<String>Subtitle text lines.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SrtEntry
impl RefUnwindSafe for SrtEntry
impl Send for SrtEntry
impl Sync for SrtEntry
impl Unpin for SrtEntry
impl UnsafeUnpin for SrtEntry
impl UnwindSafe for SrtEntry
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