Skip to main content

PrecisionBits

Trait PrecisionBits 

Source
pub trait PrecisionBits {
    // Required method
    fn precision_bits(&self) -> u32;
}

Required Methods§

Source

fn precision_bits(&self) -> u32

Returns the precision (in bits) of the floating-point type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PrecisionBits for Float

Implementors§

Source§

impl<T: NativeReal> PrecisionBits for T