Trait Decode

Source
pub trait Decode {
    // Provided method
    fn decode(bytes: &[u8]) -> Result<Self, Box<dyn Error>>
       where Self: Sized + for<'a> Deserialize<'a> { ... }
}
Expand description

Adds deserialisation via bincode and serde to a type. Must be present on all major file types.

Provided Methods§

Source

fn decode(bytes: &[u8]) -> Result<Self, Box<dyn Error>>
where Self: Sized + for<'a> Deserialize<'a>,

Implementors§