pub enum SubtitleFormat {
Srt,
Ass,
WebVtt,
MovText,
Pgs,
VobSub,
DvbSub,
Unknown,
}Expand description
A subtitle format.
Variants§
Implementations§
Source§impl SubtitleFormat
impl SubtitleFormat
Sourcepub const ALL: &'static [SubtitleFormat]
pub const ALL: &'static [SubtitleFormat]
Every value an app offers, in the order a client lists
them: all but Unknown.
Sourcepub fn from_wire_name(name: &str) -> Option<Self>
pub fn from_wire_name(name: &str) -> Option<Self>
The value named name on the wire; None for a name
this build doesn’t know.
Trait Implementations§
Source§impl Clone for SubtitleFormat
impl Clone for SubtitleFormat
impl Copy for SubtitleFormat
Source§impl Debug for SubtitleFormat
impl Debug for SubtitleFormat
Source§impl<'de> Deserialize<'de> for SubtitleFormat
impl<'de> Deserialize<'de> for SubtitleFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SubtitleFormat
impl Display for SubtitleFormat
impl Eq for SubtitleFormat
Source§impl Hash for SubtitleFormat
impl Hash for SubtitleFormat
Source§impl Ord for SubtitleFormat
impl Ord for SubtitleFormat
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SubtitleFormat
impl PartialEq for SubtitleFormat
Source§impl PartialOrd for SubtitleFormat
impl PartialOrd for SubtitleFormat
Source§impl Serialize for SubtitleFormat
impl Serialize for SubtitleFormat
impl StructuralPartialEq for SubtitleFormat
Auto Trait Implementations§
impl Freeze for SubtitleFormat
impl RefUnwindSafe for SubtitleFormat
impl Send for SubtitleFormat
impl Sync for SubtitleFormat
impl Unpin for SubtitleFormat
impl UnsafeUnpin for SubtitleFormat
impl UnwindSafe for SubtitleFormat
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