Function libyml::dumper::yaml_emitter_dump_mapping

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

Dumps a YAML mapping node to the emitter.

This function handles emitting a mapping node, which is a set of key-value pairs.

§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 mapping 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.
  • The mapping node must contain a valid set of key-value pairs that can be safely iterated and emitted.