Skip to main content

IeeeExt

Trait IeeeExt 

Source
pub trait IeeeExt: Float {
    // Required method
    fn pi() -> Self;

    // Provided methods
    fn one() -> Self { ... }
    fn two() -> Self { ... }
    fn three() -> Self { ... }
    fn clamp(self, min: Self, max: Self) -> Self { ... }
}
Expand description

Extend functionality of rustc_apfloat softfloats for IEEE float types.

Required Methods§

Source

fn pi() -> Self

Provided Methods§

Source

fn one() -> Self

Source

fn two() -> Self

Source

fn three() -> Self

Source

fn clamp(self, min: Self, max: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IeeeExt for IeeeFloat<DoubleS>

Source§

fn pi() -> Self

Source§

impl IeeeExt for IeeeFloat<HalfS>

Source§

fn pi() -> Self

Source§

impl IeeeExt for IeeeFloat<SingleS>

Source§

fn pi() -> Self

Implementors§