Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::detail::ValueBase::StringWithContext::Context Struct Reference

#include <value.hh>

Public Types

using value_type = const StringData *
using size_type = std::size_t
using iterator = const value_type *

Public Member Functions

 Context (size_type size)
iterator begin () const
iterator end () const
size_type size () const

Static Public Member Functions

static Context * fromBuilder (const NixStringContext &context, EvalMemory &mem)

Detailed Description

The type of the context itself.

Currently, it is length-prefixed array of pointers to null-terminated strings. The strings are specially formatted to represent a flattening of the recursive sum type that is a context element.

See also
NixStringContext for an more easily understood type, that of the "builder" for this data structure.

Member Function Documentation

◆ fromBuilder()

Context * nix::detail::ValueBase::StringWithContext::Context::fromBuilder ( const NixStringContext & context,
EvalMemory & mem )
static
Returns
null pointer when context.empty()

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