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]

Loading content...

Implementations on Foreign Types

impl<'a, 'b: 'a> DecodeBytes<'b> for &'a [u8][src]

impl<'b> DecodeBytes<'b> for Vec<u8>[src]

impl<'b, T: DecodeBytes<'b>> DecodeBytes<'b> for Option<T>[src]

Loading content...

Implementors

impl<'a, 'b: 'a> DecodeBytes<'b> for &'a ByteSlice[src]

impl<'b> DecodeBytes<'b> for ByteVec[src]

Loading content...