to_writer

Function to_writer 

Source
pub fn to_writer<T: Serialize, W: Write>(
    value: &T,
    writer: &mut W,
) -> Result<(), Error>
Expand description

Serialize a value to a writer in TOON format

§Arguments

  • value - The value to serialize (must implement Serialize)
  • writer - The writer to write to

§Returns

A Result indicating success or failure