FixedBinary.opEquals

bool opEquals(FixedBinary rhs) const @safe pure nothrow @nogc

Equality and three-way comparison by value.

Parameters

rhsthe other value.

Returns

For opCmp: negative, zero or positive as this is less than,

equal to or greater than rhs.

bool opEquals(I rhs) const @safe pure nothrow @nogc

Compares exactly with an integer, without wrapping or narrowing it into the fixed-point range.

Parameters

rhsinteger to compare.

Returns

true when the values are equal.