Trait encdec_base::decode::Decode
source · pub trait Decode<'a>: Sized {
type Output: Debug;
type Error: From<Error> + Debug;
fn decode(buff: &'a [u8]) -> Result<(Self::Output, usize), Self::Error>;
}Expand description
Decode trait implemented for binary decodable objects
Required Associated Types§
Required Methods§
Implementors§
source§impl<'a, T: DecodeOwned> Decode<'a> for T
impl<'a, T: DecodeOwned> Decode<'a> for T
Blanket Decode impl for DecodeOwned types