Trait libipld_core::codec::Decode
source · pub trait Decode<C: Codec>: Sized {
// Required method
fn decode<R: Read + Seek>(c: C, r: &mut R) -> Result<Self>;
}
Expand description
Decode trait.
This trait is generic over a codec, so that different codecs can be implemented for the same type.
Required Methods§
Object Safety§
This trait is not object safe.