Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
Result Class Reference

Public Member Functions

 Result (T value, bool overflowed)
 
 Result (T value, OverflowKind overflowed)
 
bool operator== (Result other) const
 
std::optional< T > valueChecked () const
 
valueWrapping () const
 
bool overflowed () const
 
bool divideByZero () const
 

Member Function Documentation

◆ valueWrapping()

T Result::valueWrapping ( ) const
inline

Returns the result as if the arithmetic were performed as wrapping arithmetic.

Exceptions
DivideByZeroif the operation was a divide by zero.

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