pub trait Write { // Required method fn write_all(&mut self, buf: &[u8]) -> Result<()>; }
Trait used by the ser::Serializer to write bytes.
ser::Serializer
Writes all of the bytes.
If the bytes could not be written, a Bencode error is returned.
std