pub trait Encode { fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Error<W::Error>>; }
Encode trait
Write the type to writer by CBOR encoding.