pub unsafe fn yaml_document_get_root_node(
    document: *mut yaml_document_t
) -> *mut yaml_node_t
Expand description

Get the root of a YAML document node.

The root object is the first object added to the document.

The pointer returned by this function is valid until any of the functions modifying the documents are called.

An empty document produced by the parser signifies the end of a YAML stream.

Returns the node object or NULL if the document is empty.