logo
pub trait FromBytes: Sized {
    fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>;

    fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error> { ... }
}
Expand description

A type which can be deserialized from a Vec<u8>.

Required methods

Deserializes the slice into Self.

Provided methods

Deserializes the Vec<u8> into Self.

Implementations on Foreign Types

Implementors