Crate aurum_numeric [] [src]

Traits

Biclamp

A bidirectional variant of Clamp.

CheckedAdd

Checked addition which returns None if an overflow or underflow occurs.

CheckedDec

Checked variant of Dec.

CheckedDiv

Checked division which returns None if an overflow or underflow occurs or if the right hand side is zero.

CheckedFrom

Checked conversion between machine integers which returns None if an overflow or underflow occurs.

CheckedInc

Checked variant of Inc.

CheckedInto

Checked conversion between machine integers which returns None if an overflow or underflow occurs.

CheckedMul

Checked multiplication which returns None if an overflow or underflow occurs.

CheckedNeg

Checked negation which returns None if an overflow or underflow occurs.

CheckedSub

Checked subtraction which returns None if an overflow or underflow occurs.

Clamp

Trait for numbers which may be "clamped" within a minimum and maximum value.

ClampFrom

Trait for interpolating between clamped ranges of different types.

ClampInto

Trait for interpolating between clamped ranges of different types.

Dec

Trait for types which may be decremented.

Inc

Trait for types which may be incremented.

Int

Trait for integer types.

MachineInt

Trait implemented by machine scalars.

One

Placeholder which will be removed when std::num::One becomes stable.

RawFrom

Trait for raw conversion between machine scalars.

RawInto

Trait for raw conversion between machine scalars.

Real

Trait for real numbers which can represent values between integers.

Sqrt

Gets the square root of a number.

Trig

Trigonemetric functions.

WrappingAdd

Wrapping addition.

WrappingDec

Wrapping variant of Dec.

WrappingDiv

Wrapping division.

WrappingInc

Wrapping variant of Inc.

WrappingMul

Wrapping multiplication.

WrappingNeg

Wrapping negation.

WrappingRem

Wrapping remainder.

WrappingShl

Wrapping shift left.

WrappingShr

Wrapping shift right.

WrappingSub

Wrapping subtraction.

Zero

Placeholder which will be removed when std::num::Zero becomes stable.