pub trait DecodeOwned {
    type Output: Debug;
    type Error: From<Error> + Debug;

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

Decode for owned types, avoids lifetime constraints

Required Associated Types

Output type

Error type returned on parse error

Required Methods

Decode consumes a slice and returns an object and decoded length.

Implementors