Trait DeserializeFrom

Source
pub trait DeserializeFrom<T: BinarySerializable> {
    // Required method
    fn deserialize(&mut self) -> Result<T>;
}

Required Methods§

Source

fn deserialize(&mut self) -> Result<T>

Implementations on Foreign Types§

Source§

impl<T: BinarySerializable> DeserializeFrom<T> for &[u8]

Implement deserialize from &u8 for all types which implement BinarySerializable.

TryFrom would actually be preferable, but not possible because of the orphan rules (not completely sure if this could be resolved)

Source§

fn deserialize(&mut self) -> Result<T>

Implementors§