pub fn encode<W: IntoWrite, V: Encode<W::Write>>( writer: W, value: V, ) -> EncodingResult<()>
Encodes the given value by constructing an encoder on the fly and using it to wrap the writer, with the default context.