Skip to main content

to_writer_tracking_shared

Function to_writer_tracking_shared 

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

Write YAML to a writer with automatic anchor/alias emission for shared Rc / Arc pointers.

See to_string_tracking_shared for behaviour.

ยงErrors

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