Function libyml::yaml_emitter_close

source ·
pub unsafe fn yaml_emitter_close(emitter: *mut YamlEmitterT) -> Success
Expand description

Finish a YAML stream.

This function should be used after yaml_emitter_dump() is called.

§Safety

  • emitter must be a valid, non-null pointer to a properly initialized YamlEmitterT struct.
  • The YamlEmitterT struct must be in an opened state and not already closed.
  • The YamlEmitterT struct must be properly aligned and have the expected memory layout.