pub unsafe extern "C" fn nix_value_force(
context: *mut nix_c_context,
state: *mut EvalState,
value: *mut nix_value,
) -> nix_err
Expand description
Forces the evaluation of a Nix value.
The Nix interpreter is lazy, and not-yet-evaluated values can be
of type NIX_TYPE_THUNK instead of their actual value.
This function mutates such a nix_value
, so that, if successful, it has
its final type.
§Arguments
context
[out] - Optional, stores error informationstate
[in] - The state of the evaluation.value
[in,out] - The Nix value to force. @post value is not of type NIX_TYPE_THUNK
§Returns
NIX_OK if the force operation was successful, an error code otherwise.