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