Function nix_get_attr_name_byidx

Source
pub unsafe extern "C" fn nix_get_attr_name_byidx(
    context: *mut nix_c_context,
    value: *const nix_value,
    state: *mut EvalState,
    i: c_uint,
) -> *const c_char
Expand description

Get an attribute name by index in the sorted bindings Useful when you want the name but want to avoid evaluation. Owned by the nix EvalState

§Arguments

  • context [out] - Optional, stores error information
  • value [in] - Nix value to inspect
  • state [in] - nix evaluator state
  • i [in] - attribute index

§Returns

name, NULL in case of errors