pub trait One {
    const ONE: Self;

    // Required method
    fn is_one(&self) -> bool;
}

Required Associated Constants§

source

const ONE: Self

The one value for this type.

Required Methods§

source

fn is_one(&self) -> bool

Whether the value is one.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl One for f32

source§

const ONE: Self = 1f32

source§

fn is_one(&self) -> bool

source§

impl One for f64

source§

const ONE: Self = 1f64

source§

fn is_one(&self) -> bool

source§

impl One for u8

source§

const ONE: Self = 1u8

source§

fn is_one(&self) -> bool

source§

impl One for u16

source§

const ONE: Self = 1u16

source§

fn is_one(&self) -> bool

source§

impl One for u32

source§

const ONE: Self = 1u32

source§

fn is_one(&self) -> bool

source§

impl One for u64

source§

const ONE: Self = 1u64

source§

fn is_one(&self) -> bool

source§

impl One for u128

source§

const ONE: Self = 1u128

source§

fn is_one(&self) -> bool

source§

impl One for usize

source§

const ONE: Self = 1usize

source§

fn is_one(&self) -> bool

Implementors§