Function libyml::api::yaml_emitter_set_width

source ·
pub unsafe fn yaml_emitter_set_width(emitter: *mut YamlEmitterT, width: i32)
Expand description

Set the preferred line width. -1 means unlimited.

This function sets the preferred line width for the emitter’s output. A value of -1 means that the line width is unlimited.

§Safety

  • emitter must be a valid, non-null pointer to a properly initialized YamlEmitterT struct.
  • The YamlEmitterT struct and its associated data structures must be properly aligned and have the expected memory layout.