Skip to main content

FloatFormat

Trait FloatFormat 

Source
pub trait FloatFormat:
    Copy
    + Clone
    + PartialEq
    + Eq {
    type Bits: BitOps;

    const EXP_BITS: u32;
    const FRAC_BITS: u32;
    const BIAS: i32;
    const HAS_EXPLICIT_INT: bool;

    // Required methods
    fn to_bits(self) -> Self::Bits;
    fn from_bits(bits: Self::Bits) -> Self;
}

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn to_bits(self) -> Self::Bits

Source

fn from_bits(bits: Self::Bits) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§