Function libyml::dumper::yaml_emitter_open
source · pub unsafe fn yaml_emitter_open(emitter: *mut YamlEmitterT) -> Success
Expand description
Start a YAML stream.
This function should be used before yaml_emitter_dump() is called.
§Safety
emitter
must be a valid, non-null pointer to a properly initializedYamlEmitterT
struct.- The
YamlEmitterT
struct must not be in an opened state. - The
YamlEmitterT
struct must be properly aligned and have the expected memory layout.