Trait libipld_core::codec::Decode [−][src]
Decode trait.
This trait is generic over a codec, so that different codecs can be implemented for the same type.
Required methods
fn decode<R: Read + Seek>(c: C, r: &mut R) -> Result<Self>[src]
Decode from an impl Read.
It takes a specific codec as parameter, so that the Decode can be generic over an enum
that contains multiple codecs.
Implementations on Foreign Types
impl Decode<RawCodec> for Box<[u8]>[src]
impl Decode<RawCodec> for Vec<u8>[src]
Loading content...Implementors
impl Decode<RawCodec> for Ipld[src]
impl<C: Codec + SkipOne> Decode<C> for IgnoredAny[src]
impl<C: Codec + SkipOne> Decode<C> for RawValue<C>[src]
impl<C: Codec, T> Decode<C> for Link<T> where
Cid: Decode<C>, [src]
Cid: Decode<C>,