pub trait Writer { fn write(&mut self, bytes: &[u8]) -> Result<(), EncodeError>; }
Trait that indicates that a struct can be used as a destination to encode data too. This is used by Encode
Write bytes to the underlying writer. Exactly bytes.len() bytes must be written, or else an error should be returned.
bytes
bytes.len()