to_stream

Function to_stream 

Source
pub fn to_stream<T>(
    encoder: &mut Encoder,
    wrt: &mut dyn Write,
    value: &T,
) -> Result<()>
where T: ?Sized + Serialize,
Expand description

Encode single message into object that implements std::io::Write trait.