Module num::traits
[−]
[src]
Numeric traits for generic mathematics
Modules
bounds | |
cast | |
float | |
identities | |
int | |
ops | |
sign |
Structs
ParseFloatError |
Enums
FloatErrorKind |
Traits
Bounded |
Numbers which have upper and lower bounds |
CheckedAdd |
Performs addition that returns |
CheckedDiv |
Performs division that returns |
CheckedMul |
Performs multiplication that returns |
CheckedSub |
Performs subtraction that returns |
Float | |
FromPrimitive |
A generic trait for converting a number to a value. |
Num |
The base trait for numeric types |
NumCast |
An interface for casting between machine scalars. |
One |
Defines a multiplicative identity element for |
PrimInt | |
Saturating |
Saturating math operations |
Signed |
Useful functions for signed numbers (i.e. numbers that can be negative). |
ToPrimitive |
A generic trait for converting a value to a number. |
Unsigned |
A trait for values which cannot be negative |
Zero |
Defines an additive identity element for |
Functions
cast |
Cast from one machine scalar to another. |