[−][src]Trait libipld_core::codec::Encode
Encode trait.
This trait is generic over a codec, so that different codecs can be implemented for the same type.
Required methods
pub fn encode<W: Write>(&self, c: C, w: &mut W) -> Result<()>[src]
Encodes into a impl Write.
It takes a specific codec as parameter, so that the Encode can be generic over an enum
that contains multiple codecs.