Function libyml::api::yaml_emitter_set_canonical
source · pub unsafe fn yaml_emitter_set_canonical(
emitter: *mut YamlEmitterT,
canonical: bool,
)
Expand description
Set if the output should be in the “canonical” format as in the YAML specification.
This function sets whether the emitter should produce output in the canonical format, as defined by the YAML specification.
§Safety
emitter
must be a valid, non-null pointer to a properly initializedYamlEmitterT
struct.- The
YamlEmitterT
struct and its associated data structures must be properly aligned and have the expected memory layout.