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