IntFlag

Represents a single cause of failure for an integer math operation.

Alias This

mask

ditto

Members

Functions

toString
string toString()

Get a string representation of this IntFlag. The format is the same as that returned by IntFlags.toString().

toString
void toString(Writer w, FormatSpec!Char fmt = (FormatSpec!Char).init)

Puts a string representation of this IntFlag into w. This overload will not allocate, unless std.range.primitives.put(w, ...) allocates.

Properties

desc
string desc [@property getter]

Get a description of this error flag.

isNull
bool isNull [@property getter]

false if this IntFlag is set to one of the error signals listed above. Otherwise true.

mask
IntFlags mask [@property getter]

An IntFlag value is implicitly convertible to an IntFlags with only the one flag raised.

Variables

div0
enum IntFlag div0;

A division by zero was attempted.

imag
enum IntFlag imag;

The result is imaginary, and as such not representable by an integral type.

negOver
enum IntFlag negOver;

Overflow occured because a value was too negative.

over
enum IntFlag over;

Overflow occured.

posOver
enum IntFlag posOver;

Overflow occured because a value was too large.

undef
enum IntFlag undef;

The result of the operation is undefined mathematically, by the API, or both.

Meta