Skip to main content

One

Trait One 

Source
pub trait One {
    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".

Implementations on Foreign Types§

Source§

impl One for f32

Source§

const ONE: Self = 1.0

Source§

impl One for usize

Source§

const ONE: Self = 1

Implementors§