pub trait ExportObject {
// Required methods
fn export_to_buffer(&mut self, buffer: &mut Vec<u8>);
fn extension(&self) -> impl AsRef<str>;
// Provided methods
fn export_to_file(&mut self) { ... }
fn filename(&self) -> impl AsRef<str> { ... }
}Required Methods§
Sourcefn export_to_buffer(&mut self, buffer: &mut Vec<u8>)
fn export_to_buffer(&mut self, buffer: &mut Vec<u8>)
Export contents to a Vec<u8> buffer, with optional parameters
Provided Methods§
Sourcefn export_to_file(&mut self)
fn export_to_file(&mut self)
Export contents and save them on disk, with optional parameters
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.