Function libyml::dumper::yaml_emitter_dump_scalar

source ·
pub unsafe fn yaml_emitter_dump_scalar(
    emitter: *mut YamlEmitterT,
    node: *mut YamlNodeT,
    anchor: *mut u8,
) -> Success
Expand description

Dumps a YAML scalar node to the emitter.

This function handles emitting a scalar node, which is a single key-value pair.

§Safety

  • emitter must be a valid, non-null pointer to an initialized YamlEmitterT struct.
  • node must be a valid, non-null pointer to a YamlNodeT struct representing the scalar node.
  • anchor must be a valid, non-null pointer to a yaml_char_t if provided, or null if no anchor is used.
  • The caller must ensure that the node and anchor pointers are valid and properly aligned.