encode

Function encode 

Source
pub fn encode<W: IntoWrite, V: Encode<W::Write>>(
    writer: W,
    value: V,
) -> EncodingResult<()>
Expand description

Encodes the given value by constructing an encoder on the fly and using it to wrap the writer, with the default context.