Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::ExprAttrs::AttrDef Struct Reference

Public Types

enum class  Kind { Plain , Inherited , InheritedFrom }
 

Public Member Functions

 AttrDef (Expr *e, const PosIdx &pos, Kind kind=Kind::Plain)
 
template<typename T>
const T & chooseByKind (const T &plain, const T &inherited, const T &inheritedFrom) const
 

Public Attributes

Kind kind
 
Expre
 
PosIdx pos
 
Displacement displ = 0
 

Member Enumeration Documentation

◆ Kind

enum class nix::ExprAttrs::AttrDef::Kind
strong
Enumerator
Plain 

attr = expr;

Inherited 

inherit attr1 attrn;

InheritedFrom 

inherit (expr) attr1 attrn;


The documentation for this struct was generated from the following file: