libyml::api

Function yaml_alias_event_initialize

Source
pub unsafe fn yaml_alias_event_initialize(
    event: *mut YamlEventT,
    anchor: *const u8,
) -> Success
Expand description

Create an ALIAS event.

ยงSafety

  • event must be a valid, non-null pointer to a YamlEventT struct that can be safely written to.
  • anchor must be a valid, non-null pointer to a null-terminated UTF-8 string.
  • The YamlEventT struct must be properly aligned and have the expected memory layout.
  • The caller is responsible for freeing any dynamically allocated memory associated with the event using yaml_event_delete.