sigma_types

Trait One

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

Types equipped with a multiplicative identity (i.e., one).

Required Associated Constants§

Source

const ONE: Self

Additive identity (i.e., one).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl One for f32

Source§

const ONE: Self = 1f32

Source§

impl One for f64

Source§

const ONE: Self = 1f64

Source§

impl One for i8

Source§

const ONE: Self = 1i8

Source§

impl One for i16

Source§

const ONE: Self = 1i16

Source§

impl One for i32

Source§

const ONE: Self = 1i32

Source§

impl One for i64

Source§

const ONE: Self = 1i64

Source§

impl One for i128

Source§

const ONE: Self = 1i128

Source§

impl One for isize

Source§

const ONE: Self = 1isize

Source§

impl One for u8

Source§

const ONE: Self = 1u8

Source§

impl One for u16

Source§

const ONE: Self = 1u16

Source§

impl One for u32

Source§

const ONE: Self = 1u32

Source§

impl One for u64

Source§

const ONE: Self = 1u64

Source§

impl One for u128

Source§

const ONE: Self = 1u128

Source§

impl One for usize

Source§

const ONE: Self = 1usize

Implementors§

Source§

impl<T: One + PartialOrd + Zero + Debug> One for NonNegative<T>

Source§

const ONE: Self

Source§

impl<T: One + PartialOrd + Zero + Debug> One for Positive<T>

Source§

const ONE: Self

Source§

impl<T: One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool> One for OnUnit<T, INCLUSIVE_AT_ZERO, true>

Source§

const ONE: Self