Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
store-cast.hh File Reference

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.