Trait rin::math::Zero[][src]

pub trait Zero: Add<Self, Output = Self> {
    pub fn zero() -> Self;
pub fn is_zero(&self) -> bool; pub fn set_zero(&mut self) { ... } }

Defines an additive identity element for Self.

Laws

a + 0 = a       ∀ a ∈ Self
0 + a = a       ∀ a ∈ Self

Required methods

pub fn zero() -> Self[src]

Returns the additive identity element of Self, 0.

Purity

This function should return the same result at all times regardless of external mutable state, for example values stored in TLS or in static muts.

pub fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

Loading content...

Provided methods

pub fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

Loading content...

Implementations on Foreign Types

impl Zero for i64[src]

impl Zero for u32[src]

impl Zero for u8[src]

impl Zero for f32[src]

impl Zero for i16[src]

impl Zero for u128[src]

impl Zero for isize[src]

impl Zero for usize[src]

impl Zero for u16[src]

impl Zero for i8[src]

impl Zero for i128[src]

impl Zero for i32[src]

impl<T> Zero for Wrapping<T> where
    T: Zero,
    Wrapping<T>: Add<Wrapping<T>>,
    <Wrapping<T> as Add<Wrapping<T>>>::Output == Wrapping<T>, 
[src]

impl Zero for f64[src]

impl Zero for u64[src]

impl<T> Zero for Ratio<T> where
    T: Clone + Integer
[src]

impl Zero for AutoSimd<[f64; 2]>[src]

impl Zero for AutoSimd<[f32; 2]>[src]

impl Zero for AutoSimd<[i16; 4]>[src]

impl Zero for AutoSimd<[i16; 16]>[src]

impl Zero for AutoSimd<[f32; 4]>[src]

impl Zero for AutoSimd<[u16; 2]>[src]

impl Zero for AutoSimd<[u16; 8]>[src]

impl Zero for AutoSimd<[i128; 4]>[src]

impl Zero for AutoSimd<[u128; 2]>[src]

impl Zero for AutoSimd<[u128; 1]>[src]

impl Zero for AutoSimd<[u32; 16]>[src]

impl Zero for AutoSimd<[usize; 2]>[src]

impl Zero for AutoSimd<[i16; 32]>[src]

impl Zero for AutoSimd<[i32; 4]>[src]

impl Zero for AutoSimd<[u8; 4]>[src]

impl Zero for AutoSimd<[i32; 2]>[src]

impl Zero for AutoSimd<[i16; 2]>[src]

impl Zero for AutoSimd<[f32; 8]>[src]

impl Zero for AutoSimd<[u64; 4]>[src]

impl Zero for AutoSimd<[usize; 4]>[src]

impl Zero for AutoSimd<[isize; 8]>[src]

impl Zero for AutoSimd<[f64; 8]>[src]

impl Zero for AutoSimd<[i64; 8]>[src]

impl Zero for AutoSimd<[u32; 2]>[src]

impl Zero for AutoSimd<[i16; 8]>[src]

impl Zero for AutoSimd<[u32; 8]>[src]

impl Zero for AutoSimd<[f64; 4]>[src]

impl Zero for AutoSimd<[i64; 4]>[src]

impl Zero for AutoSimd<[f32; 16]>[src]

impl Zero for AutoSimd<[u8; 32]>[src]

impl Zero for AutoSimd<[u8; 16]>[src]

impl Zero for AutoSimd<[u8; 2]>[src]

impl Zero for AutoSimd<[u8; 8]>[src]

impl Zero for AutoSimd<[i8; 4]>[src]

impl Zero for AutoSimd<[i32; 8]>[src]

impl Zero for AutoSimd<[u16; 32]>[src]

impl Zero for AutoSimd<[i8; 16]>[src]

impl Zero for AutoSimd<[i64; 2]>[src]

impl Zero for AutoSimd<[u16; 4]>[src]

impl Zero for AutoSimd<[i8; 32]>[src]

impl Zero for AutoSimd<[u16; 16]>[src]

impl Zero for AutoSimd<[i32; 16]>[src]

impl Zero for AutoSimd<[u64; 8]>[src]

impl Zero for AutoSimd<[u32; 4]>[src]

impl Zero for AutoSimd<[i128; 2]>[src]

impl Zero for AutoSimd<[usize; 8]>[src]

impl Zero for AutoSimd<[u128; 4]>[src]

impl Zero for AutoSimd<[u64; 2]>[src]

impl Zero for AutoSimd<[i128; 1]>[src]

impl Zero for AutoSimd<[i8; 2]>[src]

impl Zero for AutoSimd<[i8; 8]>[src]

impl Zero for AutoSimd<[isize; 4]>[src]

impl Zero for AutoSimd<[isize; 2]>[src]

impl<T> Zero for Complex<T> where
    T: Clone + Num
[src]

impl<N> Zero for Dual<Quaternion<N>> where
    N: SimdRealField,
    <N as SimdValue>::Element: SimdRealField
[src]

Loading content...

Implementors

impl Zero for rin::math::simd::AutoSimd<[f32; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[f32; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[f32; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[f32; 16]>[src]

impl Zero for rin::math::simd::AutoSimd<[f64; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[f64; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[f64; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[i8; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[i8; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[i8; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[i8; 16]>[src]

impl Zero for rin::math::simd::AutoSimd<[i8; 32]>[src]

impl Zero for rin::math::simd::AutoSimd<[i16; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[i16; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[i16; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[i16; 16]>[src]

impl Zero for rin::math::simd::AutoSimd<[i16; 32]>[src]

impl Zero for rin::math::simd::AutoSimd<[i32; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[i32; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[i32; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[i32; 16]>[src]

impl Zero for rin::math::simd::AutoSimd<[i64; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[i64; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[i64; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[i128; 1]>[src]

impl Zero for rin::math::simd::AutoSimd<[i128; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[i128; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[isize; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[isize; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[isize; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[u8; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[u8; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[u8; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[u8; 16]>[src]

impl Zero for rin::math::simd::AutoSimd<[u8; 32]>[src]

impl Zero for rin::math::simd::AutoSimd<[u16; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[u16; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[u16; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[u16; 16]>[src]

impl Zero for rin::math::simd::AutoSimd<[u16; 32]>[src]

impl Zero for rin::math::simd::AutoSimd<[u32; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[u32; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[u32; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[u32; 16]>[src]

impl Zero for rin::math::simd::AutoSimd<[u64; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[u64; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[u64; 8]>[src]

impl Zero for rin::math::simd::AutoSimd<[u128; 1]>[src]

impl Zero for rin::math::simd::AutoSimd<[u128; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[u128; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[usize; 2]>[src]

impl Zero for rin::math::simd::AutoSimd<[usize; 4]>[src]

impl Zero for rin::math::simd::AutoSimd<[usize; 8]>[src]

impl<N> Zero for Deg<N> where
    N: Num + Zero + NumCast + Clone
[src]

pub fn zero() -> Deg<N>[src]

Returns the additive identity.

impl<N> Zero for Quaternion<N> where
    N: SimdRealField,
    <N as SimdValue>::Element: SimdRealField
[src]

impl<N> Zero for Rad<N> where
    N: Num + Zero + NumCast + Clone
[src]

pub fn zero() -> Rad<N>[src]

Returns the additive identity.

impl<N, R, C> Zero for Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer> where
    C: DimName,
    N: Scalar + Zero + ClosedAdd<N>,
    R: DimName,
    DefaultAllocator: Allocator<N, R, C>, 
[src]

impl<T> Zero for rin::math::Complex<T> where
    T: Clone + Num
[src]

Loading content...