pub struct nix_value { /* private fields */ }Expand description
A Nix language value, or thunk that may evaluate to a value. @ingroup value
Values are the primary objects manipulated in the Nix language. They are considered to be immutable from a user’s perspective, but the process of evaluating a value changes its ValueType if it was a thunk. After a value has been evaluated, its ValueType does not change.
Evaluation in this context refers to the process of evaluating a single
value object, also called “forcing” the value; see nix_value_force.
The evaluator manages its own memory, but your use of the C API must follow the reference counting rules.
@struct nix_value
§See also
[
value_create,] value_extract [nix_value_incref,] nix_value_decref
Trait Implementations§
Auto Trait Implementations§
impl Freeze for nix_value
impl RefUnwindSafe for nix_value
impl Send for nix_value
impl Sync for nix_value
impl Unpin for nix_value
impl UnsafeUnpin for nix_value
impl UnwindSafe for nix_value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more