Trait encdec_base::Decode
source · [−]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
Required Methods
Implementations on Foreign Types
sourceimpl<T, E, const N: usize> Decode for [T; N]where
T: Decode<Error = E> + Default + Debug,
E: From<Error> + Debug,
impl<T, E, const N: usize> Decode for [T; N]where
T: Decode<Error = E> + Default + Debug,
E: From<Error> + Debug,
Blanket Decode impl for slices of encodable types