Trait Decode
libipld_core::codec
pub trait Decode<C: Codec>: Sized { fn decode<R: Read>(c: C, r: &mut R) -> Result<Self>; }
Decode trait.
fn decode<R: Read>(c: C, r: &mut R) -> Result<Self>
Decode from an impl Read.
impl Read
impl Decode<RawCodec> for Box<[u8]>
fn decode<R: Read>(c: RawCodec, r: &mut R) -> Result<Self>
impl Decode<RawCodec> for Vec<u8>
fn decode<R: Read>(_: RawCodec, r: &mut R) -> Result<Self>
impl Decode<RawCodec> for Ipld