pub enum ValueType {
AttrSet,
Bool,
External,
Float,
Function,
Int,
List,
Null,
Path,
String,
Unknown,
}Expand description
The type discriminator of a Value that has successfully evaluated to at least weak head normal form.
Typically acquired with EvalState::value_type
Variants§
AttrSet
A Nix attribute set
Bool
A Nix boolean
External
A Nix external value (mostly-opaque value for plugins, linked applications)
Float
A Nix float
Function
A Nix function
Int
A Nix integer
List
A Nix list
Null
A Nix null
Path
A Nix path value
String
A Nix string
Unknown
An unknown value, presumably from a new, partially unsupported version of Nix
Trait Implementations§
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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