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.

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.

opBinary
auto opBinary(U rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
size_t opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(U rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
auto opOpAssign(U rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
auto opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isDefined
bool isDefined [@property getter]

Check if this value is defined.

toString
void delegate(scope const(char)[]) @(safe) toString [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
auto value [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

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