pub trait Decode: Sized {
    type Error: Debug;

    fn decode<'a>(buff: &'a [u8]) -> Result<(Self, usize), Self::Error>;
}
Expand description

Decode trait implemented for binary decodable objects

Required Associated Types

Error type returned on parse error

Required Methods

Parse method consumes a slice and returns an object and the remaining slice.

Implementations on Foreign Types

Blanket Decode impl for slices of encodable types

Implementors