Trait minicbor::bytes::DecodeBytes [−][src]
pub trait DecodeBytes<'b>: Sized { fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>; }
Like Decode but specific for decoding from byte slices.
Required methods
fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>[src]
Implementations on Foreign Types
impl<'a, 'b: 'a> DecodeBytes<'b> for &'a [u8][src]
impl<'a, 'b: 'a> DecodeBytes<'b> for &'a [u8][src]fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>[src]
impl<'b> DecodeBytes<'b> for Vec<u8>[src]
impl<'b> DecodeBytes<'b> for Vec<u8>[src]fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>[src]
impl<'b, T: DecodeBytes<'b>> DecodeBytes<'b> for Option<T>[src]
impl<'b, T: DecodeBytes<'b>> DecodeBytes<'b> for Option<T>[src]fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>[src]
Implementors
impl<'a, 'b: 'a> DecodeBytes<'b> for &'a ByteSlice[src]
impl<'a, 'b: 'a> DecodeBytes<'b> for &'a ByteSlice[src]fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>[src]
impl<'b> DecodeBytes<'b> for ByteVec[src]
impl<'b> DecodeBytes<'b> for ByteVec[src]