pub trait DecodeBytes<'b, C>: Sized {
// Required method
fn decode_bytes(d: &mut Decoder<'b>, ctx: &mut C) -> Result<Self, Error>;
// Provided method
fn nil() -> Option<Self> { ... }
}
Expand description
Like Decode
but specific for decoding from byte slices.
Required Methods§
Provided 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.