Skip to main content

to_writer_value_with_config

Function to_writer_value_with_config 

Source
pub fn to_writer_value_with_config<W>(
    writer: W,
    value: &Value,
    config: &SerializerConfig,
) -> Result<()>
where W: Write,
Expand description

Write a Value to an std::io::Write sink with a custom SerializerConfig, preserving Value::Tagged shape losslessly. See to_string_value for the rationale.

§Errors

  • Error::Io — the underlying writer returned an I/O error.
  • All variants documented on to_string_with_config.