[−][src]Module af_lib::math
Traits and utilities for working with numbers.
Traits
AsPrimitive | A generic interface for casting between machine scalars with the
|
FloatExt | An extension trait for |
Number | A trait for types that implement all the basic operations of a number. |
One | Defines a multiplicative identity element for |
Zero | Defines an additive identity element for |
Functions
clamp | Clamps a number so that it is between a minimum and maximum bound. |
clamp_mut | Clamps a number in-place so that it is between a minimum and maximum bound. |
one | Returns the multiplicative identity, |
zero | Returns the additive identity, |