Skip to main content

tx_root_element

Function tx_root_element 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tx_root_element( doc: *const TxDocument, ) -> TxNodeId
Expand description

Returns the root element of the document, or TX_NULL_NODE if the document is empty.

ยงSafety

doc must be a valid, non-null pointer to a TxDocument.