Module fixed::traits[][src]

Traits for conversions and for generic use of fixed-point numbers.

Traits

Fixed

This trait provides methods common to all fixed-point numbers.

FixedOptionalFeatures

This trait is used to provide supertraits to the Fixed trait depending on the crate’s optional features.

FixedSigned

This trait provides methods common to all signed fixed-point numbers.

FixedUnsigned

This trait provides methods common to all unsigned fixed-point numbers.

FromFixed

This trait provides checked conversions from fixed-point numbers.

LosslessTryFrom

This trait provides lossless conversions that might be fallible.

LosslessTryInto

This trait provides lossless conversions that might be fallible. This is the reciprocal of LosslessTryFrom.

LossyFrom

This trait provides infallible conversions that might be lossy.

LossyInto

This trait provides infallible conversions that might be lossy. This is the reciprocal of LossyFrom.

ToFixed

This trait provides checked conversions to fixed-point numbers.