[][src]Module num::traits

Modules

bounds
cast
float
identities
int
ops
pow
real
sign

Structs

ParseFloatError

Enums

FloatErrorKind

Traits

Num

The base trait for numeric types, covering 0 and 1 values, comparisons, basic numeric operations, and string conversion.

NumAssign

The trait for Num types which also implement assignment operators.

NumAssignOps

The trait for types implementing numeric assignment operators (like +=).

NumAssignRef

The trait for NumAssign types which also implement assignment operations taking the second operand by reference.

NumOps

The trait for types implementing basic numeric operations

NumRef

The trait for Num types which also implement numeric operations taking the second operand by reference.

RefNum

The trait for references which implement numeric operations, taking the second operand either by value or by reference.

Functions

clamp

A value bounded by a minimum and a maximum

clamp_max

A value bounded by a maximum value

clamp_min

A value bounded by a minimum value