Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
store-cast.hh File Reference
#include "store-api.hh"

Go to the source code of this file.

Functions

template<typename T>
T & nix::require (Store &store)
 

Function Documentation

◆ require()

template<typename T>
T & nix::require ( Store & store)

Helper to try downcasting a Store with a nice method if it fails.

This is basically an alternative to the user-facing part of Store::unsupported that allows us to still have a nice message but better interface design.