Skip to main content

to_writer_tracking_shared_with_config

Function to_writer_tracking_shared_with_config 

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

Write YAML to a writer with automatic anchor/alias emission and a custom configuration.

See to_string_tracking_shared for behaviour.

ยงErrors

Returns an error if the type cannot be serialized or writing fails.