pub trait AnchorDeserialize {
    fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>;

    fn try_from_slice(v: &[u8]) -> Result<Self, Error> { ... }
}
Expand description

Borsh is the default serialization format for instructions and accounts. A data-structure that can be de-serialized from binary format by NBOR.

Required Methods

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

Provided Methods

Deserialize this instance from a slice of bytes.

Implementations on Foreign Types

Implementors