Trait OneHalf

Source
pub trait OneHalf {
    const ONE_HALF: Self;
}
Expand description

Provides the constant 1/2.

Required Associated Constants§

Source

const ONE_HALF: Self

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.

Implementations on Foreign Types§

Source§

impl OneHalf for f32

The constant 1/2.

Source§

const ONE_HALF: f32 = 0.5f32

Source§

impl OneHalf for f64

The constant 1/2.

Source§

const ONE_HALF: f64 = 0.5f64

Implementors§