pub struct Uf64E11M52(/* private fields */);Expand description
A 64-bit unsigned float with 11 exponent bits and 52 mantissa bits.
Implementations§
Source§impl Uf64E11M52
impl Uf64E11M52
pub const EXPONENT_BITS: u32 = 11
pub const MANTISSA_BITS: u32 = 52
pub const EXPONENT_BIAS: i32 = 1023
pub const EXPONENT_MASK: u64 = 0x7ff0_0000_0000_0000
pub const MANTISSA_MASK: u64 = 0x000f_ffff_ffff_ffff
pub const ZERO: Self
pub const ONE: Self
pub const INFINITY: Self
pub const NAN: Self
pub const MAX: Self
pub const MIN_POSITIVE: Self
pub const MIN_NORMAL: Self
pub const fn from_bits(bits: u64) -> Self
pub const fn to_bits(self) -> u64
pub fn from_f128(value: f128) -> Self
pub fn to_f128(self) -> f128
pub fn try_from_f128(value: f128) -> Result<Self, ConversionError>
pub fn from_f64(value: f64) -> Self
pub fn to_f64(self) -> f64
pub fn try_from_f64(value: f64) -> Result<Self, ConversionError>
pub fn from_f32(value: f32) -> Self
pub fn to_f32(self) -> f32
pub fn from_f16(value: f16) -> Self
pub fn to_f16(self) -> f16
pub const fn exponent(self) -> u64
pub const fn mantissa(self) -> u64
pub const fn is_zero(self) -> bool
pub const fn is_nan(self) -> bool
pub const fn is_infinite(self) -> bool
pub const fn is_finite(self) -> bool
pub const fn is_subnormal(self) -> bool
Trait Implementations§
Source§impl Add for Uf64E11M52
impl Add for Uf64E11M52
Source§impl Clone for Uf64E11M52
impl Clone for Uf64E11M52
Source§fn clone(&self) -> Uf64E11M52
fn clone(&self) -> Uf64E11M52
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Uf64E11M52
impl Debug for Uf64E11M52
Source§impl Default for Uf64E11M52
impl Default for Uf64E11M52
Source§fn default() -> Uf64E11M52
fn default() -> Uf64E11M52
Returns the “default value” for a type. Read more
Source§impl Display for Uf64E11M52
impl Display for Uf64E11M52
Source§impl Div for Uf64E11M52
impl Div for Uf64E11M52
Source§impl From<Uf64E11M52> for f128
impl From<Uf64E11M52> for f128
Source§fn from(value: Uf64E11M52) -> Self
fn from(value: Uf64E11M52) -> Self
Converts to this type from the input type.
Source§impl From<Uf64E11M52> for f16
Available on crate feature f16 only.
impl From<Uf64E11M52> for f16
Available on crate feature
f16 only.Source§fn from(value: Uf64E11M52) -> Self
fn from(value: Uf64E11M52) -> Self
Converts to this type from the input type.
Source§impl From<Uf64E11M52> for f32
impl From<Uf64E11M52> for f32
Source§fn from(value: Uf64E11M52) -> Self
fn from(value: Uf64E11M52) -> Self
Converts to this type from the input type.
Source§impl From<Uf64E11M52> for f64
impl From<Uf64E11M52> for f64
Source§fn from(value: Uf64E11M52) -> Self
fn from(value: Uf64E11M52) -> Self
Converts to this type from the input type.
Source§impl From<f16> for Uf64E11M52
Available on crate feature f16 only.
impl From<f16> for Uf64E11M52
Available on crate feature
f16 only.Source§impl From<f32> for Uf64E11M52
impl From<f32> for Uf64E11M52
Source§impl From<f64> for Uf64E11M52
impl From<f64> for Uf64E11M52
Source§impl Hash for Uf64E11M52
impl Hash for Uf64E11M52
Source§impl LowerExp for Uf64E11M52
impl LowerExp for Uf64E11M52
Source§impl Mul for Uf64E11M52
impl Mul for Uf64E11M52
Source§impl Ord for Uf64E11M52
impl Ord for Uf64E11M52
Source§impl PartialEq for Uf64E11M52
impl PartialEq for Uf64E11M52
Source§impl PartialOrd for Uf64E11M52
impl PartialOrd for Uf64E11M52
Source§impl Pow1mUf<Uf64E11M52> for f32
Available on crate feature f128 only.
impl Pow1mUf<Uf64E11M52> for f32
Available on crate feature
f128 only.Source§impl Pow1mUf<Uf64E11M52> for f64
Available on crate feature f128 only.
impl Pow1mUf<Uf64E11M52> for f64
Available on crate feature
f128 only.Source§impl PowUf<Uf64E11M52> for f32
Available on crate feature f128 only.
impl PowUf<Uf64E11M52> for f32
Available on crate feature
f128 only.Source§impl PowUf<Uf64E11M52> for f64
Available on crate feature f128 only.
impl PowUf<Uf64E11M52> for f64
Available on crate feature
f128 only.Source§impl Sub for Uf64E11M52
impl Sub for Uf64E11M52
Source§impl TryFrom<f128> for Uf64E11M52
impl TryFrom<f128> for Uf64E11M52
Source§impl UpperExp for Uf64E11M52
impl UpperExp for Uf64E11M52
impl Copy for Uf64E11M52
impl Eq for Uf64E11M52
impl StructuralPartialEq for Uf64E11M52
Auto Trait Implementations§
impl Freeze for Uf64E11M52
impl RefUnwindSafe for Uf64E11M52
impl Send for Uf64E11M52
impl Sync for Uf64E11M52
impl Unpin for Uf64E11M52
impl UnsafeUnpin for Uf64E11M52
impl UnwindSafe for Uf64E11M52
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more