pub struct WebVttFormat { /* private fields */ }Available on crate feature
std only.Expand description
WebVTT format handler with style and positioning preservation
Implementations§
Source§impl WebVttFormat
impl WebVttFormat
Trait Implementations§
Source§impl Debug for WebVttFormat
impl Debug for WebVttFormat
Source§impl Default for WebVttFormat
impl Default for WebVttFormat
Source§impl Format for WebVttFormat
impl Format for WebVttFormat
Source§fn as_importer(&self) -> &dyn FormatImporter
fn as_importer(&self) -> &dyn FormatImporter
Get self as an importer (workaround for trait upcasting)
Source§fn as_exporter(&self) -> &dyn FormatExporter
fn as_exporter(&self) -> &dyn FormatExporter
Get self as an exporter (workaround for trait upcasting)
Source§fn supports_extension(&self, extension: &str) -> bool
fn supports_extension(&self, extension: &str) -> bool
Check if this format supports the given file extension
Source§impl FormatExporter for WebVttFormat
impl FormatExporter for WebVttFormat
Source§fn format_info(&self) -> &FormatInfo
fn format_info(&self) -> &FormatInfo
Get information about this format
Source§fn export_to_writer(
&self,
document: &EditorDocument,
writer: &mut dyn Write,
options: &FormatOptions,
) -> Result<FormatResult, EditorError>
fn export_to_writer( &self, document: &EditorDocument, writer: &mut dyn Write, options: &FormatOptions, ) -> Result<FormatResult, EditorError>
Export to a writer with the given options
Source§fn can_export(&self, extension: &str) -> bool
fn can_export(&self, extension: &str) -> bool
Check if this exporter can handle the given file extension
Source§fn export_to_path(
&self,
document: &EditorDocument,
path: &Path,
options: &FormatOptions,
) -> Result<FormatResult, EditorError>
fn export_to_path( &self, document: &EditorDocument, path: &Path, options: &FormatOptions, ) -> Result<FormatResult, EditorError>
Export to a file path
Source§fn export_to_string(
&self,
document: &EditorDocument,
options: &FormatOptions,
) -> Result<(String, FormatResult), EditorError>
fn export_to_string( &self, document: &EditorDocument, options: &FormatOptions, ) -> Result<(String, FormatResult), EditorError>
Export to a string
Source§impl FormatImporter for WebVttFormat
impl FormatImporter for WebVttFormat
Source§fn format_info(&self) -> &FormatInfo
fn format_info(&self) -> &FormatInfo
Get information about this format
Source§fn import_from_reader(
&self,
reader: &mut dyn Read,
options: &FormatOptions,
) -> Result<(EditorDocument, FormatResult), EditorError>
fn import_from_reader( &self, reader: &mut dyn Read, options: &FormatOptions, ) -> Result<(EditorDocument, FormatResult), EditorError>
Import from a reader with the given options
Source§fn can_import(&self, extension: &str) -> bool
fn can_import(&self, extension: &str) -> bool
Check if this importer can handle the given file extension
Source§fn import_from_path(
&self,
path: &Path,
options: &FormatOptions,
) -> Result<(EditorDocument, FormatResult), EditorError>
fn import_from_path( &self, path: &Path, options: &FormatOptions, ) -> Result<(EditorDocument, FormatResult), EditorError>
Import from a file path
Source§fn import_from_string(
&self,
content: &str,
options: &FormatOptions,
) -> Result<(EditorDocument, FormatResult), EditorError>
fn import_from_string( &self, content: &str, options: &FormatOptions, ) -> Result<(EditorDocument, FormatResult), EditorError>
Import from a string
Auto Trait Implementations§
impl Freeze for WebVttFormat
impl RefUnwindSafe for WebVttFormat
impl Send for WebVttFormat
impl Sync for WebVttFormat
impl Unpin for WebVttFormat
impl UnwindSafe for WebVttFormat
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