pub trait FromBytes: Sized {
    fn from_bytes(src: &[u8]) -> Result<(usize, Self), Error>;
}
Expand description

Deserialize a sequence of bytes into a type. The implementations for the built-in types are in big endian for this trait.

Required methods

Read data from src in order to create an instance Self. The usize in the Result is the number of bytes read from src.

Implementations on Foreign Types

Implementors