pub trait Savable {
    fn save<W: Write>(&self, writer: &mut W) -> Result<()>;
    fn load<R: Read>(&mut self, reader: &mut R) -> Result<()>;

    fn save_size(&self) -> Result<u64> { ... }
}

Required Methods

Provided Methods

The size of the object if saved now, note that this might change, for example due to the length of string objects or data inside the object.

Implementations on Foreign Types

Implementors