pub trait Write {
// Required method
fn write(&mut self, buf: &[u8]) -> EncodingResult<()>;
}Expand description
Everything, be it a stream or buffer, which can be encoded into.
Required Methods§
Sourcefn write(&mut self, buf: &[u8]) -> EncodingResult<()>
fn write(&mut self, buf: &[u8]) -> EncodingResult<()>
Writes the entire contents of buf.
No guarantees are made about flushing.