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

#include <attr-set.hh>

Public Types

using value_type = Attr
 

Public Member Functions

 BindingsBuilder (EvalState &state, Bindings *bindings)
 
void insert (Symbol name, Value *value, PosIdx pos=noPos)
 
void insert (const Attr &attr)
 
void push_back (const Attr &attr)
 
Valuealloc (Symbol name, PosIdx pos=noPos)
 
Valuealloc (std::string_view name, PosIdx pos=noPos)
 
Bindingsfinish ()
 
BindingsalreadySorted ()
 
size_t capacity ()
 
void grow (Bindings *newBindings)
 

Public Attributes

EvalStatestate
 

Friends

struct ExprAttrs
 

Detailed Description

A wrapper around Bindings that ensures that its always in sorted order at the end. The only way to consume a BindingsBuilder is to call finish(), which sorts the bindings.


The documentation for this class was generated from the following files: