encode_into_writer

Function encode_into_writer 

Source
pub fn encode_into_writer<E: Encode, W: Writer, C: Config>(
    val: E,
    writer: W,
    config: C,
) -> Result<(), EncodeError>
Expand description

Encode the given value into a custom [Writer].

See the config module for more information on configurations.

ยงErrors

Returns an EncodeError if the writer fails or the value cannot be encoded.