pub trait BorshDeserialize: Sized {
    fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self>;

    fn deserialize(buf: &mut &[u8]) -> Result<Self> { ... }
    fn try_from_slice(v: &[u8]) -> Result<Self> { ... }
    fn try_from_reader<R: Read>(reader: &mut R) -> Result<Self> { ... }
}
Expand description

A data-structure that can be de-serialized from binary format by NBOR.

Required Methods§

Provided Methods§

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes.

Deserialize this instance from a slice of bytes.

Implementations on Foreign Types§

Implementors§