pub fn to_stream<S, V: ToStream<S> + ?Sized, W: Write>( value: &V, stream: &mut W, ) -> Result<()>
A simple function to write a value to a stream.