Module concrete_core::numeric[][src]

Generic numeric types.

This module contains types and traits to manipulate numeric types in a generic manner. For instance, in the standard library, the f32 and f64 trait share a lot of methods of the same name and same semantics. Still, it is not possible to use them generically. This module provides the FloatingPoint trait, implemented by both of those type, to remedy the situation.

Note

The current implementation of those traits does not strive to be general, in the sense that not all the common methods of the same kind of types are exposed. Only were included the ones that are used in the rest of the library.

Traits

CastFrom

A trait that allows to generically cast one type from another.

CastInto

A trait that allows to generically cast one type into another.

FloatingPoint

A trait shared by all the floating point types.

Numeric

A trait implemented by any generic numeric type suitable for computations.

SignedInteger

A trait shared by all the unsigned integer types.

UnsignedInteger

A trait shared by all the unsigned integer types.