pub enum CaptionFormat {
Srt,
Vtt,
}Expand description
Timed-text file format.
Variants§
Srt
SubRip (.srt) — the most widely accepted sidecar format.
Vtt
WebVTT (.vtt) — the format <track> takes in browsers.
Implementations§
Source§impl CaptionFormat
impl CaptionFormat
Trait Implementations§
Source§impl Clone for CaptionFormat
impl Clone for CaptionFormat
Source§fn clone(&self) -> CaptionFormat
fn clone(&self) -> CaptionFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CaptionFormat
Source§impl Debug for CaptionFormat
impl Debug for CaptionFormat
impl Eq for CaptionFormat
Source§impl PartialEq for CaptionFormat
impl PartialEq for CaptionFormat
impl StructuralPartialEq for CaptionFormat
Auto Trait Implementations§
impl Forget for CaptionFormat
impl Freeze for CaptionFormat
impl Move for CaptionFormat
impl RefUnwindSafe for CaptionFormat
impl Send for CaptionFormat
impl Sync for CaptionFormat
impl Unpin for CaptionFormat
impl UnsafeUnpin for CaptionFormat
impl UnwindSafe for CaptionFormat
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