Trait minicbor::bytes::DecodeBytes
source · pub trait DecodeBytes<'b>: Sized {
// Required method
fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>;
// Provided method
fn nil() -> Option<Self> { ... }
}
Expand description
Like Decode
but specific for decoding from byte slices.
Required Methods§
fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>
Provided Methods§
Object Safety§
This trait is not object safe.