pub trait DFloat: Float {
    type H: HFloat<D = Self>;

    // Required method
    fn narrow(self) -> Self::H;
}
Expand description

Trait for floats twice the bit width of another integer.

Required Associated Types§

Source

type H: HFloat<D = Self>

Float that is half the bit width of the floatthis trait is implemented for.

Required Methods§

Source

fn narrow(self) -> Self::H

Narrow the float type.

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.

Implementors§