pub trait Encoder {
// Required method
fn encode(chart: &RoxChart) -> RoxResult<Vec<u8>>;
// Provided methods
fn encode_to_path(chart: &RoxChart, path: impl AsRef<Path>) -> RoxResult<()> { ... }
fn encode_to_string(chart: &RoxChart) -> RoxResult<String> { ... }
}Expand description
Trait for encoding from ROX to external formats.
Required Methods§
Provided Methods§
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.