OneHalf

Trait OneHalf 

Source
pub trait OneHalf: Sized {
    // Required method
    fn onehalf() -> Self;
}

Required Methods§

Source

fn onehalf() -> 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

Source§

fn onehalf() -> Self

Source§

impl OneHalf for f64

Source§

fn onehalf() -> Self

Implementors§