[−][src]Trait libipld_core::codec::Decode
Decode trait.
This trait is generic over a codec, so that different codecs can be implemented for the same type.
Required methods
pub fn decode<R: Read>(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.