Skip to main content

ReadFormat

Trait ReadFormat 

Source
pub trait ReadFormat {
    // Required method
    fn deserialize<'a, T>(bytes: &'a [u8]) -> Result<T>
       where T: Deserialize<'a>;
}
Expand description

trait that represents the deserialize side of a format

Required Methods§

Source

fn deserialize<'a, T>(bytes: &'a [u8]) -> Result<T>
where T: Deserialize<'a>,

deserialize object in this format

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§