Skip to main content

to_writer_with_config

Function to_writer_with_config 

Source
pub fn to_writer_with_config<W, T>(
    writer: W,
    value: &T,
    config: &SerializerConfig,
) -> Result<()>
where W: Write, T: ?Sized + Serialize,
Expand description

Serialize a Rust value to YAML and write to a std::io::Write sink, using a custom SerializerConfig.

§Errors

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