Function libyml::api::yaml_document_append_sequence_item
source · pub unsafe fn yaml_document_append_sequence_item(
document: *mut YamlDocumentT,
sequence: i32,
item: i32,
) -> Success
Expand description
Add an item to a SEQUENCE node.
This function adds a node with the given item
id to the sequence node with the given
sequence
id in the document.
§Safety
document
must be a valid, non-null pointer to aYamlDocumentT
struct.sequence
must be a valid index within the range of nodes in theYamlDocumentT
struct, and the node at that index must be aYamlSequenceNode
.item
must be a valid index within the range of nodes in theYamlDocumentT
struct.- The
YamlDocumentT
struct and its associated nodes must be properly initialized and their memory allocated correctly. - The
YamlDocumentT
struct and its associated nodes must be properly aligned and have the expected memory layout.