Skip to main content

One

Trait One 

Source
pub trait One {
    const ONE: Self;
}
Expand description

Trait for the one value of a type.

Required Associated Constants§

Source

const ONE: Self

Associated constant.

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 i8

Source§

const ONE: Self = 1

Source§

impl One for i16

Source§

const ONE: Self = 1

Source§

impl One for i32

Source§

const ONE: Self = 1

Source§

impl One for i64

Source§

const ONE: Self = 1

Source§

impl One for i128

Source§

const ONE: Self = 1

Source§

impl One for u8

Source§

const ONE: Self = 1

Source§

impl One for u16

Source§

const ONE: Self = 1

Source§

impl One for u32

Source§

const ONE: Self = 1

Source§

impl One for u64

Source§

const ONE: Self = 1

Source§

impl One for u128

Source§

const ONE: Self = 1

Implementors§