Function libyml::api::yaml_event_delete
source · pub unsafe fn yaml_event_delete(event: *mut YamlEventT)
Expand description
Free any memory allocated for an event object.
This function frees the dynamically allocated memory associated with a YamlEventT
struct,
such as strings for anchors, tags, and scalar values.
§Safety
event
must be a valid, non-null pointer to aYamlEventT
struct.- The
YamlEventT
struct must have been properly initialized and its memory allocated correctly. - The
YamlEventT
struct must be properly aligned and have the expected memory layout.