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 initializedYamlEmitterT
struct.node
must be a valid, non-null pointer to aYamlNodeT
struct representing the mapping node.anchor
must be a valid, non-null pointer to ayaml_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.