encode

Function encode 

Source
pub fn encode<T: Encode>(value: &T, writer: &mut impl Write) -> Result<usize>
Expand description

Encodes value into writer using the type’s Encode implementation.

Returns the number of bytes written on success.