Trait malachite_base::num::basic::traits::One

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

Provides the constant 1.

Required Associated Constants§

source

const ONE: Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl One for f32

The constant 1.

source§

const ONE: f32 = 1f32

source§

impl One for f64

The constant 1.

source§

const ONE: f64 = 1f64

source§

impl One for i8

The constant 1.

§Examples

See here.

source§

const ONE: i8 = 1i8

source§

impl One for i16

The constant 1.

§Examples

See here.

source§

const ONE: i16 = 1i16

source§

impl One for i32

The constant 1.

§Examples

See here.

source§

const ONE: i32 = 1i32

source§

impl One for i64

The constant 1.

§Examples

See here.

source§

const ONE: i64 = 1i64

source§

impl One for i128

The constant 1.

§Examples

See here.

source§

const ONE: i128 = 1i128

source§

impl One for isize

The constant 1.

§Examples

See here.

source§

const ONE: isize = 1isize

source§

impl One for u8

The constant 1.

§Examples

See here.

source§

const ONE: u8 = 1u8

source§

impl One for u16

The constant 1.

§Examples

See here.

source§

const ONE: u16 = 1u16

source§

impl One for u32

The constant 1.

§Examples

See here.

source§

const ONE: u32 = 1u32

source§

impl One for u64

The constant 1.

§Examples

See here.

source§

const ONE: u64 = 1u64

source§

impl One for u128

The constant 1.

§Examples

See here.

source§

const ONE: u128 = 1u128

source§

impl One for usize

The constant 1.

§Examples

See here.

source§

const ONE: usize = 1usize

source§

impl One for NonZeroI8

source§

const ONE: Self = _

source§

impl One for NonZeroI16

source§

const ONE: Self = _

source§

impl One for NonZeroI32

source§

const ONE: Self = _

source§

impl One for NonZeroI64

source§

const ONE: Self = _

source§

impl One for NonZeroI128

source§

const ONE: Self = _

source§

impl One for NonZeroIsize

source§

const ONE: Self = _

source§

impl One for NonZeroU8

source§

const ONE: Self = _

source§

impl One for NonZeroU16

source§

const ONE: Self = _

source§

impl One for NonZeroU32

source§

const ONE: Self = _

source§

impl One for NonZeroU64

source§

const ONE: Self = _

source§

impl One for NonZeroU128

source§

const ONE: Self = _

source§

impl One for NonZeroUsize

source§

const ONE: Self = _

Implementors§