Function libyml::dumper::yaml_emitter_dump_sequence
source · pub unsafe fn yaml_emitter_dump_sequence(
emitter: *mut YamlEmitterT,
node: *mut YamlNodeT,
anchor: *mut u8,
) -> Success
Expand description
Dumps a YAML sequence node to the emitter.
This function handles emitting a sequence node, which is a list of items.
§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 sequence 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 sequence node must contain a valid list of items that can be safely iterated and emitted.