Bound

Value of type V bound inside inclusive range [low, high].

If optional is true, this stores one extra undefined state (similar to Haskell's Maybe).

If useExceptions is true range errors will throw a BoundOverflowException, otherwise truncation plus warnings will issued.

Constructors

this
this(U rhs)

Construct from unbounded value rhs.

this
this(Bound!(U, low_, high_, optional, useExceptions, packed, signed) rhs)

Construct from Bound value rhs.

Members

Functions

checkAssign
void checkAssign(U rhs)

Check that assignment from rhs is ok.

isDefined
bool isDefined()

Check if this value is defined.

opAssign
auto opAssign(U rhs)

Assigne from unbounded value rhs.

opAssign
auto opAssign(Bound!(U, low_, high_, optional, useExceptions, packed, signed) rhs)

Assign from Bound value rhs.

Static functions

check
string check()

Check that last operation was a success.

max
auto max()

Get high inclusive bound.

min
auto min()

Get low inclusive bound.

Meta