pub struct AssFormat { /* private fields */ }Available on crate feature
std only.Expand description
ASS format handler that reuses ass-core functionality
Implementations§
Trait Implementations§
Source§impl Format for AssFormat
impl Format for AssFormat
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 AssFormat
impl FormatExporter for AssFormat
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 AssFormat
impl FormatImporter for AssFormat
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 AssFormat
impl RefUnwindSafe for AssFormat
impl Send for AssFormat
impl Sync for AssFormat
impl Unpin for AssFormat
impl UnwindSafe for AssFormat
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