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 a YamlDocumentT struct.
  • sequence must be a valid index within the range of nodes in the YamlDocumentT struct, and the node at that index must be a YamlSequenceNode.
  • item must be a valid index within the range of nodes in the YamlDocumentT 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.