pub enum SubtitleFormat {
ASS,
SSA,
SRT,
WebVTT,
PlainText,
}Available on crate feature
formats only.Expand description
Supported subtitle formats
Variants§
ASS
Advanced SubStation Alpha (.ass)
SSA
SubStation Alpha (.ssa)
SRT
SubRip Text (.srt)
WebVTT
WebVTT (.vtt)
PlainText
Plain text
Implementations§
Source§impl SubtitleFormat
impl SubtitleFormat
Sourcepub fn from_extension(ext: &str) -> Option<Self>
pub fn from_extension(ext: &str) -> Option<Self>
Detect format from file extension
Sourcepub fn from_content(content: &str) -> Self
pub fn from_content(content: &str) -> Self
Detect format from content
Trait Implementations§
Source§impl Clone for SubtitleFormat
impl Clone for SubtitleFormat
Source§fn clone(&self) -> SubtitleFormat
fn clone(&self) -> SubtitleFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubtitleFormat
impl Debug for SubtitleFormat
Source§impl PartialEq for SubtitleFormat
impl PartialEq for SubtitleFormat
impl Copy for SubtitleFormat
impl Eq 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 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