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 Fields

Provided Methods§

source

fn write_message<W: WriterBackend>(&self, _: &mut Writer<W>) -> Result<()>

Writes Self into W writer

source

fn get_size(&self) -> usize

Computes necessary binary size of self once serialized in protobuf

source

fn write_file<P: AsRef<Path>>(&self, p: P) -> Result<()>

Writes self into a file

Object Safety§

This trait is not object safe.

Implementors§