pub struct Subtitle {
pub index: usize,
pub period: Period,
pub lines: Vec<String>,
}
Expand description
A single SRT-format subtitle, minus some of the optional fields used in various versions of the file format.
Fields§
§index: usize
The index of this subtitle. We should normalize these to start with 1 on output.
period: Period
The time period during which this subtitle is shown.
lines: Vec<String>
The lines of text in this subtitle.
Implementations§
Trait Implementations§
source§impl PartialEq for Subtitle
impl PartialEq for Subtitle
impl StructuralPartialEq for Subtitle
Auto Trait Implementations§
impl Freeze for Subtitle
impl RefUnwindSafe for Subtitle
impl Send for Subtitle
impl Sync for Subtitle
impl Unpin for Subtitle
impl UnwindSafe for Subtitle
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