pub struct SubtitleEntry {
pub timespan: TimeSpan,
pub line: Option<String>,
}Expand description
The data which can be read from/written to a subtitle file.
Fields§
§timespan: TimeSpanThe duration for which the current subtitle will be shown.
line: Option<String>The text which will be shown in this subtitle. Be aware that
for example VobSub files (and any other image based format)
will have None as value.
Trait Implementations§
Source§impl Debug for SubtitleEntry
impl Debug for SubtitleEntry
Source§impl From<TimeSpan> for SubtitleEntry
impl From<TimeSpan> for SubtitleEntry
Source§fn from(f: TimeSpan) -> SubtitleEntry
fn from(f: TimeSpan) -> SubtitleEntry
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubtitleEntry
impl RefUnwindSafe for SubtitleEntry
impl Send for SubtitleEntry
impl Sync for SubtitleEntry
impl Unpin for SubtitleEntry
impl UnwindSafe for SubtitleEntry
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