Module traits

Module traits 

Source
Expand description

Numeric traits to fill some gaps in the ecosystem

Much code in this library is generic over the numeric type it uses, however, there currently seem to be some holes in the ecosystem. num-traits basically covers anything we could need, but some of isn’t available in a no_std context, or can’t be implemented by the types from fixed for some reason.

This module defines some custom traits and provides implementations for f32, f64, and all types from fixed.

Traits§

Ceil
Defines an interface to the ceil operator for rounding up
Sqrt
Defines an interface to the square root operation