Skip to main content

FloatTraits

Trait FloatTraits 

Source
pub trait FloatTraits:
    Clone
    + Debug
    + PartialEq {
    type Bits: FloatBitsType;

    // Required method
    fn properties(&self) -> FloatProperties;
}
Expand description

FloatProperties values along with the type used to represent bits for a floating-point format

Required Associated Types§

Source

type Bits: FloatBitsType

the type used to represent bits for a floating-point format

Required Methods§

Source

fn properties(&self) -> FloatProperties

get the FloatProperties value

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§