pub trait DecodePrefixed<'a, P: Decode<'a>> {
    type Output: Debug;
    type Error: Debug;
    // Required method
    fn decode_prefixed(
        buff: &'a [u8],
    ) -> Result<(Self::Output, usize), Self::Error>;
}Expand description
Decode helper trait for fields with length prefixes
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.