pub enum NixType {
Int,
Float,
Bool,
String,
Path,
NullType,
List(Box<NixType>),
AttrSet(Vec<(String, NixType)>),
Function(Box<NixType>, Box<NixType>),
Derivation,
}Expand description
Nix runtime type tags (Nix is dynamically typed, so these are descriptive).
Variants§
Int
Integer type: 42
Float
Float type: 3.14
Bool
Boolean type: true / false
String
String type: "hello"
Path
Path type: ./foo/bar or /nix/store/...
NullType
The null type: null
List(Box<NixType>)
Homogeneous list type: [ T ]
AttrSet(Vec<(String, NixType)>)
Attribute set type (optional field type map)
Function(Box<NixType>, Box<NixType>)
Function type: T1 -> T2
Derivation
Derivation (a special attribute set produced by derivation { ... })
Trait Implementations§
impl Eq for NixType
impl StructuralPartialEq for NixType
Auto Trait Implementations§
impl Freeze for NixType
impl RefUnwindSafe for NixType
impl Send for NixType
impl Sync for NixType
impl Unpin for NixType
impl UnsafeUnpin for NixType
impl UnwindSafe for NixType
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