pub fn write_yaml<W: Write>( writer: &mut W, namespaces: &[NamespaceInfo], ) -> Result<(), Box<dyn Error>>
Writes namespaces as YAML to the given writer.
Returns an error if serialization or writing fails.