Function Amount.isInRange

static bool isInRange (
  ulong value
) pure nothrow @nogc @safe;

Returns

true if value is in the range [0; Amount.MaxUnitSupply] and can be safely used to make an Amount