Expand description
Utilties for working with numerical values.
Traits§
- AsPrimitive
- A generic interface for casting between machine scalars with the
asoperator, which admits narrowing and precision loss. Implementers of this traitAsPrimitiveshould behave like a primitive numeric type (e.g. a newtype around another primitive), and the intended conversion must never fail. - Float
Ext - An extension trait for
f32andf64. - Number
- A trait for types that implement all the basic operations of a number.
- One
- Defines a multiplicative identity element for
Self. - Zero
- Defines an additive identity element for
Self.