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

Classes

struct  All
 
struct  Names
 

Public Types

typedef std::variant< All, NamesRaw
 

Public Member Functions

bool operator== (const OutputsSpec &) const =default
 
bool operator< (const OutputsSpec &other) const
 
 MAKE_WRAPPER_CONSTRUCTOR (OutputsSpec)
 
 OutputsSpec ()=delete
 
bool contains (const OutputName &output) const
 
OutputsSpec union_ (const OutputsSpec &that) const
 
bool isSubsetOf (const OutputsSpec &outputs) const
 
std::string to_string () const
 

Static Public Member Functions

static OutputsSpec parse (std::string_view s)
 
static std::optional< OutputsSpecparseOpt (std::string_view s)
 

Public Attributes

Raw raw
 

Constructor & Destructor Documentation

◆ OutputsSpec()

nix::OutputsSpec::OutputsSpec ( )
delete

Force choosing a variant

Member Function Documentation

◆ isSubsetOf()

bool nix::OutputsSpec::isSubsetOf ( const OutputsSpec & outputs) const

Whether this OutputsSpec is a subset of that.

◆ parse()

OutputsSpec nix::OutputsSpec::parse ( std::string_view s)
static

Parse a string of the form 'output1,...outputN' or '*', returning the outputs spec.

◆ union_()

OutputsSpec nix::OutputsSpec::union_ ( const OutputsSpec & that) const

Create a new OutputsSpec which is the union of this and that.


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