pub struct FormatConverter;Available on crate feature
formats only.Expand description
Format converter for subtitle import/export
Implementations§
Source§impl FormatConverter
impl FormatConverter
Sourcepub fn import(content: &str, format: Option<SubtitleFormat>) -> Result<String>
pub fn import(content: &str, format: Option<SubtitleFormat>) -> Result<String>
Import subtitle content from various formats into ASS
Sourcepub fn export(
document: &EditorDocument,
format: SubtitleFormat,
options: &ConversionOptions,
) -> Result<String>
pub fn export( document: &EditorDocument, format: SubtitleFormat, options: &ConversionOptions, ) -> Result<String>
Export ASS content to another subtitle format
Auto Trait Implementations§
impl Freeze for FormatConverter
impl RefUnwindSafe for FormatConverter
impl Send for FormatConverter
impl Sync for FormatConverter
impl Unpin for FormatConverter
impl UnwindSafe for FormatConverter
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