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

#include <configuration.hh>

Public Member Functions

 AbsolutePath (std::filesystem::path p)
 AbsolutePath (const char *s)
const std::filesystem::path & path () const
 operator const std::filesystem::path & () const
std::string string () const
const auto & native () const
const std::filesystem::path::value_type * c_str () const
bool empty () const
std::filesystem::path operator/ (const std::filesystem::path &rhs) const
bool operator== (const AbsolutePath &rhs) const
bool operator== (const std::filesystem::path &rhs) const
bool operator== (const std::string &rhs) const
auto operator<=> (const AbsolutePath &rhs) const

Friends

std::ostream & operator<< (std::ostream &os, const AbsolutePath &p)

Detailed Description

For Setting<AbsolutePath>. parse() calls canonPath, rejecting empty and relative paths.

Constructors throw Error if the path is not absolute.


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