Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::OutputsSpec Struct Reference

Classes

struct  Names
struct  All

Public Types

typedef std::variant< All, NamesRaw

Public Member Functions

 GENERATE_CMP (OutputsSpec, me->raw)
 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)
static void to_json (JSON &json, const OutputsSpec &t)
static OutputsSpec from_json (const JSON &json)

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: