usecrate::StreamError;usestd::io::Write;/// A value that can encode itself to a `Write`.
pubtraitEncodeToWrite{/// Encodes the value to the `Write`.
////// Returns the length of the encoded value.
fnencode_to_write<W>(&self, w:&mut W)->Result<usize, StreamError>where
W: Write;
}