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

Defines an associated constant representing the multiplicative identity element for Self.

Required Associated Constants§

source

const ONE: Self

The multiplicative identity element of Self, 1.

Implementations on Foreign Types§

source§

impl ConstOne for i8

source§

const ONE: Self = 1i8

source§

impl<T: ConstOne> ConstOne for Wrapping<T>where Wrapping<T>: Mul<Output = Wrapping<T>>,

source§

const ONE: Self = _

source§

impl ConstOne for u64

source§

const ONE: Self = 1u64

source§

impl ConstOne for i64

source§

const ONE: Self = 1i64

source§

impl ConstOne for f32

source§

const ONE: Self = 1f32

source§

impl ConstOne for usize

source§

const ONE: Self = 1usize

source§

impl ConstOne for i16

source§

const ONE: Self = 1i16

source§

impl ConstOne for u128

source§

const ONE: Self = 1u128

source§

impl ConstOne for u16

source§

const ONE: Self = 1u16

source§

impl ConstOne for f64

source§

const ONE: Self = 1f64

source§

impl ConstOne for u8

source§

const ONE: Self = 1u8

source§

impl ConstOne for u32

source§

const ONE: Self = 1u32

source§

impl ConstOne for i128

source§

const ONE: Self = 1i128

source§

impl ConstOne for isize

source§

const ONE: Self = 1isize

source§

impl ConstOne for i32

source§

const ONE: Self = 1i32

Implementors§