pub trait FormatEncoderDyn<V: ?Sized, E = Box<dyn Error>> {
// Required method
fn encode_dyn(&mut self, writer: &mut dyn Write, value: &V) -> Result<(), E>;
}Expand description
A trait object version of FormatEncoder for dynamic dispatch
pub trait FormatEncoderDyn<V: ?Sized, E = Box<dyn Error>> {
// Required method
fn encode_dyn(&mut self, writer: &mut dyn Write, value: &V) -> Result<(), E>;
}A trait object version of FormatEncoder for dynamic dispatch