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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Zero for bool

Source§

const ZERO: Self = false

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<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 Vector3<T>
where T: Zero,

Source§

const ZERO: Self

Source§

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

Source§

const ZERO: Self

Source§

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

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