Skip to main content

to_fmt_writer_with_config

Function to_fmt_writer_with_config 

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

Serialize a Rust value to YAML and write into a core::fmt::Write sink, using a custom SerializerConfig.

§Errors

  • Error::Serialize — the destination’s write_str returned fmt::Error.
  • All variants documented on to_string_with_config.