pub unsafe fn yaml_document_append_mapping_pair(
document: *mut YamlDocumentT,
mapping: i32,
key: i32,
value: i32,
) -> SuccessExpand description
Add a pair of a key and a value to a MAPPING node.
This function adds a key-value pair to the mapping node with the given mapping id in the
document. The key and value arguments are the ids of the nodes to be used as the key and
value, respectively.
ยงSafety
documentmust be a valid, non-null pointer to aYamlDocumentTstruct.mappingmust be a valid index within the range of nodes in theYamlDocumentTstruct, and the node at that index must be aYamlMappingNode.keyandvaluemust be valid indices within the range of nodes in theYamlDocumentTstruct.- The
YamlDocumentTstruct and its associated nodes must be properly initialized and their memory allocated correctly. - The
YamlDocumentTstruct and its associated nodes must be properly aligned and have the expected memory layout.