sigma_types

Trait Zero

Source
pub trait Zero {
    const ZERO: Self;
}
Expand description

Types equipped with an additive identity (i.e., zero).

Required Associated Constants§

Source

const ZERO: Self

Additive identity (i.e., zero).

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 Zero for f32

Source§

const ZERO: Self = 0f32

Source§

impl Zero for f64

Source§

const ZERO: Self = 0f64

Source§

impl Zero for i8

Source§

const ZERO: Self = 0i8

Source§

impl Zero for i16

Source§

const ZERO: Self = 0i16

Source§

impl Zero for i32

Source§

const ZERO: Self = 0i32

Source§

impl Zero for i64

Source§

const ZERO: Self = 0i64

Source§

impl Zero for i128

Source§

const ZERO: Self = 0i128

Source§

impl Zero for isize

Source§

const ZERO: Self = 0isize

Source§

impl Zero for u8

Source§

const ZERO: Self = 0u8

Source§

impl Zero for u16

Source§

const ZERO: Self = 0u16

Source§

impl Zero for u32

Source§

const ZERO: Self = 0u32

Source§

impl Zero for u64

Source§

const ZERO: Self = 0u64

Source§

impl Zero for u128

Source§

const ZERO: Self = 0u128

Source§

impl Zero for usize

Source§

const ZERO: Self = 0usize

Implementors§

Source§

impl<Z: PartialOrd + Zero + Debug> Zero for NonNegative<Z>

Source§

const ZERO: Self

Source§

impl<Z: One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ONE: bool> Zero for OnUnit<Z, true, INCLUSIVE_AT_ONE>

Source§

const ZERO: Self