Trait binver::Serializable[][src]

pub trait Serializable<'a>: Sized {
    fn serialize(&self, writer: &mut dyn Writer) -> WriteResult;
fn deserialize(reader: &mut dyn Reader<'a>) -> ReadResult<Self>; }
Expand description

The main trait of this crate that is used for (de)serialization

Required methods

Serialize the current object into the given writer.

Attempt to deserialize this object from the given reader.

Implementations on Foreign Types

Implementors