Trait Encode
libipld_core::codec
pub trait Encode<C: Codec> { fn encode<W: Write>(&self, c: C, w: &mut W) -> Result<()>; }
Encode trait.
fn encode<W: Write>(&self, c: C, w: &mut W) -> Result<()>
Encodes into a impl Write.
impl Write
impl Encode<RawCodec> for [u8]
fn encode<W: Write>(&self, _: RawCodec, w: &mut W) -> Result<()>
impl Encode<RawCodec> for Box<[u8]>
impl Encode<RawCodec> for Vec<u8>
impl Encode<RawCodec> for Ipld
fn encode<W: Write>(&self, c: RawCodec, w: &mut W) -> Result<()>