Skip to main content

Zero

Trait Zero 

Source
pub trait Zero {
    const ZERO: Self;
}

Required Associated Constants§

Source

const ZERO: Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Zero for bool

Source§

const ZERO: Self = false

Source§

impl Zero for f32

Source§

const ZERO: Self = 0_f32

Source§

impl Zero for f64

Source§

const ZERO: Self = 0_f64

Source§

impl Zero for i8

Source§

const ZERO: Self = 0_i8

Source§

impl Zero for i16

Source§

const ZERO: Self = 0_i16

Source§

impl Zero for i32

Source§

const ZERO: Self = 0_i32

Source§

impl Zero for i64

Source§

const ZERO: Self = 0_i64

Source§

impl Zero for i128

Source§

const ZERO: Self = 0_i128

Source§

impl Zero for isize

Source§

const ZERO: Self = 0_isize

Source§

impl Zero for u8

Source§

const ZERO: Self = 0_u8

Source§

impl Zero for u16

Source§

const ZERO: Self = 0_u16

Source§

impl Zero for u32

Source§

const ZERO: Self = 0_u32

Source§

impl Zero for u64

Source§

const ZERO: Self = 0_u64

Source§

impl Zero for u128

Source§

const ZERO: Self = 0_u128

Source§

impl Zero for usize

Source§

const ZERO: Self = 0_usize

Implementors§

Source§

impl<T> Zero for Euler<T>
where T: Zero,

Source§

const ZERO: Self

Source§

impl<T> Zero for Matrix3<T>
where T: Zero + Copy,

Source§

const ZERO: Self

Source§

impl<T> Zero for Matrix4<T>
where T: Zero + Copy,

Source§

const ZERO: Self

Source§

impl<T> Zero for Quaternion<T>
where T: Zero,

Source§

const ZERO: Self

Source§

impl<T> Zero for Rotor<T>
where T: Zero,

Source§

const ZERO: Self

Source§

impl<T> Zero for Vector3<T>
where T: Zero,

Source§

const ZERO: Self

Source§

impl<T> Zero for Vector4<T>
where T: Zero,

Source§

const ZERO: Self