pub trait Float: Number {
type Unsigned: Unsigned;
Show 17 associated constants and 3 methods
const RADIX: u32;
const MANTISSA_DIGITS: u32;
const DIGITS: u32;
const EPSILON: Self;
const MIN_FINITE: Self;
const MIN_POSITIVE_SUBNORMAL: Self;
const MIN_POSITIVE_NORMAL: Self;
const MIN_EXP: i32;
const MIN_10_EXP: i32;
const MAX_FINITE: Self;
const MAX_NEGATIVE_SUBNORMAL: Self;
const MAX_NEGATIVE_NORMAL: Self;
const MAX_EXP: i32;
const MAX_10_EXP: i32;
const NAN: Self;
const INFINITY: Self;
const NEG_INFINITY: Self;
// Required methods
fn from_unsigned(unsigned: Self::Unsigned) -> Self;
fn to_unsigned(self) -> Self::Unsigned;
fn classify(self) -> FpCategory;
}Required Associated Constants§
const RADIX: u32
const MANTISSA_DIGITS: u32
const DIGITS: u32
const EPSILON: Self
const MIN_FINITE: Self
const MIN_POSITIVE_SUBNORMAL: Self
const MIN_POSITIVE_NORMAL: Self
const MIN_EXP: i32
const MIN_10_EXP: i32
const MAX_FINITE: Self
const MAX_NEGATIVE_SUBNORMAL: Self
const MAX_NEGATIVE_NORMAL: Self
const MAX_EXP: i32
const MAX_10_EXP: i32
const NAN: Self
const INFINITY: Self
const NEG_INFINITY: Self
Required Associated Types§
Required Methods§
sourcefn from_unsigned(unsigned: Self::Unsigned) -> Self
fn from_unsigned(unsigned: Self::Unsigned) -> Self
from_bits
sourcefn to_unsigned(self) -> Self::Unsigned
fn to_unsigned(self) -> Self::Unsigned
to_bits
fn classify(self) -> FpCategory
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.