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

#include <print.hh>

Public Member Functions

 ValuePrinter (EvalState &state, Value &value, PrintOptions options=PrintOptions {})
 

Friends

std::ostream & operator<< (std::ostream &output, const ValuePrinter &printer)
 

Detailed Description

A partially-applied form of printValue which can be formatted using << without allocating an intermediate string.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & output,
const ValuePrinter & printer )
friend

Print true or false. Print a string as an attribute name in the Nix expression language syntax.

Prints a quoted string if necessary. Returns ‘true’ is a string is a reserved keyword which requires quotation when printing attribute set field names. Print a string as an identifier in the Nix expression language syntax.

FIXME: "identifier" is ambiguous. Identifiers do not have a single textual representation. They can be used in variable references, let bindings, left-hand sides or attribute names in a select expression, or something else entirely, like JSON. Use one of the print* functions instead. A partially-applied form of printValue which can be formatted using << without allocating an intermediate string.


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