Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
store-cast.hh File Reference
Include dependency graph for store-cast.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.