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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConstOne for f32

source§

const ONE: f32 = 1f32

source§

impl ConstOne for f64

source§

const ONE: f64 = 1f64

source§

impl ConstOne for i8

source§

const ONE: i8 = 1i8

source§

impl ConstOne for i16

source§

const ONE: i16 = 1i16

source§

impl ConstOne for i32

source§

const ONE: i32 = 1i32

source§

impl ConstOne for i64

source§

const ONE: i64 = 1i64

source§

impl ConstOne for i128

source§

const ONE: i128 = 1i128

source§

impl ConstOne for isize

source§

const ONE: isize = 1isize

source§

impl ConstOne for u8

source§

const ONE: u8 = 1u8

source§

impl ConstOne for u16

source§

const ONE: u16 = 1u16

source§

impl ConstOne for u32

source§

const ONE: u32 = 1u32

source§

impl ConstOne for u64

source§

const ONE: u64 = 1u64

source§

impl ConstOne for u128

source§

const ONE: u128 = 1u128

source§

impl ConstOne for usize

source§

const ONE: usize = 1usize

source§

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

source§

const ONE: Wrapping<T> = _

source§

impl<T> ConstOne for Complex<T>
where T: Clone + Num + ConstOne + ConstZero,

source§

const ONE: Complex<T> = Self::ONE

Implementors§