ConstOne

Trait ConstOne 

Source
pub trait ConstOne: Copy {
    const ONE: Self;
}

Required Associated Constants§

Source

const ONE: 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 ConstOne for f32

Source§

const ONE: f32 = 1f32

Source§

impl ConstOne for i32

Source§

const ONE: i32 = 1i32

Implementors§