pub trait Encode { fn encode(&self, sink: &mut Vec<u8>); }
Implemented by types that can be encoded into a byte sink.
Encode the type into the given byte sink.