Skip to main content

Module traits

Module traits 

Source
πŸ”¬This is a nightly-only experimental API. (num_internals)
Expand description

Numeric traits used for internal implementations.

Re-exportsΒ§

use crate::num::FpCategory; πŸ”’
use crate::f64; πŸ”’
use crate::fmt; πŸ”’
use crate::ops; πŸ”’

MacrosΒ§

int πŸ”’ Experimental

TraitsΒ§

CastIntoExperimental
Lossy as casting between two types.
Float πŸ‘» Experimental
A helper trait to avoid duplicating basically all the conversion code for IEEE floats.
FloatExt πŸ‘» Experimental
Items that ideally would be on Float, but don’t apply to all float types because they rely on the mantissa fitting into a u64 (which isn’t true for f128).
IntExperimental
Collection of traits that allow us to be generic over integer size.

FunctionsΒ§

pow2_to_pow10 πŸ”’ Experimental
Solve for b in 10^b = 2^a