pub trait MessageWrite: Sized {
// Provided methods
fn write_message<W: WriterBackend>(&self, _: &mut Writer<W>) -> Result<()> { ... }
fn get_size(&self) -> usize { ... }
fn write_file<P: AsRef<Path>>(&self, p: P) -> Result<()> { ... }
}
Expand description
A trait to handle deserialization based on parsed Field
s
Provided Methods§
Sourcefn write_message<W: WriterBackend>(&self, _: &mut Writer<W>) -> Result<()>
fn write_message<W: WriterBackend>(&self, _: &mut Writer<W>) -> Result<()>
Writes Self
into W writer
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.