pub unsafe fn yaml_emitter_set_encoding(
emitter: *mut YamlEmitterT,
encoding: YamlEncodingT,
)Expand description
Set the output encoding.
This function sets the encoding to be used for the output by the emitter.
ยงSafety
emittermust be a valid, non-null pointer to a properly initializedYamlEmitterTstruct.- The
YamlEmitterTstruct must not have an encoding already set, or the encoding must beYamlAnyEncoding. - The
YamlEmitterTstruct and its associated data structures must be properly aligned and have the expected memory layout.