Trait Serialize

Source
pub trait Serialize {
    // Required methods
    fn save_to<W>(&self, writer: W) -> Result<(), Error>
       where W: Write;
    fn load_from<R>(reader: R) -> Result<Self, Error>
       where R: Read,
             Self: Sized;
}
Expand description

Save and load the structure

Required Methods§

Source

fn save_to<W>(&self, writer: W) -> Result<(), Error>
where W: Write,

Source

fn load_from<R>(reader: R) -> Result<Self, Error>
where R: Read, Self: Sized,

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.

Implementors§