Skip to main content

to_fmt_writer_with_options

Function to_fmt_writer_with_options 

Source
pub fn to_fmt_writer_with_options<W: Write, T: Serialize>(
    output: &mut W,
    value: &T,
    options: SerializerOptions,
) -> Result<(), Error>
Expand description

Serialize a value as YAML into any std::fmt::Write target, with options. Options are consumed to leave room for non-Copy settings.