init_bool

Function init_bool 

Source
pub unsafe extern "C" fn init_bool(
    context: *mut c_context,
    value: *mut value,
    b: bool,
) -> err
Expand description

@name Initializers

Values are typically “returned” by initializing already allocated memory that serves as the return value. For this reason, the construction of values is not tied their allocation. Nix is a language with immutable values. Respect this property by only initializing Values once; and only initialize Values that are meant to be initialized by you. Failing to adhere to these rules may lead to undefined behavior. / /@{*/ / @brief Set boolean value @ingroup value_create @param[out] context Optional, stores error information @param[out] value Nix value to modify @param[in] b the boolean value @return error code, NIX_OK on success.