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) { ... } }
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 mut
s.
pub fn is_zero(&self) -> bool
[src]
Returns true
if self
is equal to the additive identity.
Provided methods
Loading content...Implementations on Foreign Types
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<T> Zero for Wrapping<T> where
T: Zero,
Wrapping<T>: Add<Wrapping<T>>,
<Wrapping<T> as Add<Wrapping<T>>>::Output == Wrapping<T>,
[src]impl<T> Zero for Ratio<T> where
T: Clone + Integer,
[src]
impl<T> Zero for Ratio<T> where
T: Clone + Integer,
[src]impl Zero for AutoSimd<[f64; 2]>
[src]
impl Zero for AutoSimd<[f64; 2]>
[src]impl Zero for AutoSimd<[f32; 2]>
[src]
impl Zero for AutoSimd<[f32; 2]>
[src]impl Zero for AutoSimd<[i16; 4]>
[src]
impl Zero for AutoSimd<[i16; 4]>
[src]impl Zero for AutoSimd<[i16; 16]>
[src]
impl Zero for AutoSimd<[i16; 16]>
[src]impl Zero for AutoSimd<[f32; 4]>
[src]
impl Zero for AutoSimd<[f32; 4]>
[src]impl Zero for AutoSimd<[u16; 2]>
[src]
impl Zero for AutoSimd<[u16; 2]>
[src]impl Zero for AutoSimd<[u16; 8]>
[src]
impl Zero for AutoSimd<[u16; 8]>
[src]impl Zero for AutoSimd<[i128; 4]>
[src]
impl Zero for AutoSimd<[i128; 4]>
[src]impl Zero for AutoSimd<[u128; 2]>
[src]
impl Zero for AutoSimd<[u128; 2]>
[src]impl Zero for AutoSimd<[u128; 1]>
[src]
impl Zero for AutoSimd<[u128; 1]>
[src]impl Zero for AutoSimd<[u32; 16]>
[src]
impl Zero for AutoSimd<[u32; 16]>
[src]impl Zero for AutoSimd<[usize; 2]>
[src]
impl Zero for AutoSimd<[usize; 2]>
[src]impl Zero for AutoSimd<[i16; 32]>
[src]
impl Zero for AutoSimd<[i16; 32]>
[src]impl Zero for AutoSimd<[i32; 4]>
[src]
impl Zero for AutoSimd<[i32; 4]>
[src]impl Zero for AutoSimd<[u8; 4]>
[src]
impl Zero for AutoSimd<[u8; 4]>
[src]impl Zero for AutoSimd<[i32; 2]>
[src]
impl Zero for AutoSimd<[i32; 2]>
[src]impl Zero for AutoSimd<[i16; 2]>
[src]
impl Zero for AutoSimd<[i16; 2]>
[src]impl Zero for AutoSimd<[f32; 8]>
[src]
impl Zero for AutoSimd<[f32; 8]>
[src]impl Zero for AutoSimd<[u64; 4]>
[src]
impl Zero for AutoSimd<[u64; 4]>
[src]impl Zero for AutoSimd<[usize; 4]>
[src]
impl Zero for AutoSimd<[usize; 4]>
[src]impl Zero for AutoSimd<[isize; 8]>
[src]
impl Zero for AutoSimd<[isize; 8]>
[src]impl Zero for AutoSimd<[f64; 8]>
[src]
impl Zero for AutoSimd<[f64; 8]>
[src]impl Zero for AutoSimd<[i64; 8]>
[src]
impl Zero for AutoSimd<[i64; 8]>
[src]impl Zero for AutoSimd<[u32; 2]>
[src]
impl Zero for AutoSimd<[u32; 2]>
[src]impl Zero for AutoSimd<[i16; 8]>
[src]
impl Zero for AutoSimd<[i16; 8]>
[src]impl Zero for AutoSimd<[u32; 8]>
[src]
impl Zero for AutoSimd<[u32; 8]>
[src]impl Zero for AutoSimd<[f64; 4]>
[src]
impl Zero for AutoSimd<[f64; 4]>
[src]impl Zero for AutoSimd<[i64; 4]>
[src]
impl Zero for AutoSimd<[i64; 4]>
[src]impl Zero for AutoSimd<[f32; 16]>
[src]
impl Zero for AutoSimd<[f32; 16]>
[src]impl Zero for AutoSimd<[u8; 32]>
[src]
impl Zero for AutoSimd<[u8; 32]>
[src]impl Zero for AutoSimd<[u8; 16]>
[src]
impl Zero for AutoSimd<[u8; 16]>
[src]impl Zero for AutoSimd<[u8; 2]>
[src]
impl Zero for AutoSimd<[u8; 2]>
[src]impl Zero for AutoSimd<[u8; 8]>
[src]
impl Zero for AutoSimd<[u8; 8]>
[src]impl Zero for AutoSimd<[i8; 4]>
[src]
impl Zero for AutoSimd<[i8; 4]>
[src]impl Zero for AutoSimd<[i32; 8]>
[src]
impl Zero for AutoSimd<[i32; 8]>
[src]impl Zero for AutoSimd<[u16; 32]>
[src]
impl Zero for AutoSimd<[u16; 32]>
[src]impl Zero for AutoSimd<[i8; 16]>
[src]
impl Zero for AutoSimd<[i8; 16]>
[src]impl Zero for AutoSimd<[i64; 2]>
[src]
impl Zero for AutoSimd<[i64; 2]>
[src]impl Zero for AutoSimd<[u16; 4]>
[src]
impl Zero for AutoSimd<[u16; 4]>
[src]impl Zero for AutoSimd<[i8; 32]>
[src]
impl Zero for AutoSimd<[i8; 32]>
[src]impl Zero for AutoSimd<[u16; 16]>
[src]
impl Zero for AutoSimd<[u16; 16]>
[src]impl Zero for AutoSimd<[i32; 16]>
[src]
impl Zero for AutoSimd<[i32; 16]>
[src]impl Zero for AutoSimd<[u64; 8]>
[src]
impl Zero for AutoSimd<[u64; 8]>
[src]impl Zero for AutoSimd<[u32; 4]>
[src]
impl Zero for AutoSimd<[u32; 4]>
[src]impl Zero for AutoSimd<[i128; 2]>
[src]
impl Zero for AutoSimd<[i128; 2]>
[src]impl Zero for AutoSimd<[usize; 8]>
[src]
impl Zero for AutoSimd<[usize; 8]>
[src]impl Zero for AutoSimd<[u128; 4]>
[src]
impl Zero for AutoSimd<[u128; 4]>
[src]impl Zero for AutoSimd<[u64; 2]>
[src]
impl Zero for AutoSimd<[u64; 2]>
[src]impl Zero for AutoSimd<[i128; 1]>
[src]
impl Zero for AutoSimd<[i128; 1]>
[src]impl Zero for AutoSimd<[i8; 2]>
[src]
impl Zero for AutoSimd<[i8; 2]>
[src]impl Zero for AutoSimd<[i8; 8]>
[src]
impl Zero for AutoSimd<[i8; 8]>
[src]impl Zero for AutoSimd<[isize; 4]>
[src]
impl Zero for AutoSimd<[isize; 4]>
[src]impl Zero for AutoSimd<[isize; 2]>
[src]
impl Zero for AutoSimd<[isize; 2]>
[src]impl<T> Zero for Complex<T> where
T: Clone + Num,
[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]
impl<N> Zero for Dual<Quaternion<N>> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
[src]Implementors
impl<N> Zero for Quaternion<N> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
[src]
impl<N> Zero for Quaternion<N> where
N: SimdRealField,
<N as SimdValue>::Element: SimdRealField,
[src]