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
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]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<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<N: Num + Zero + NumCast + Clone> Zero for Deg<N>
impl<N: Num + Zero + NumCast + Clone> Zero for Deg<N>
impl<N: Num + Zero + NumCast + Clone> Zero for Rad<N>
impl<N: Num + Zero + NumCast + Clone> Zero for Rad<N>
impl<N: SimdRealField> Zero for DualQuaternion<N> where
N::Element: SimdRealField,
impl<N: SimdRealField> Zero for DualQuaternion<N> where
N::Element: SimdRealField,
impl<N, R: DimName, C: DimName> Zero for MatrixMN<N, R, C> where
N: Scalar + Zero + ClosedAdd,
DefaultAllocator: Allocator<N, R, C>,
impl<N, R: DimName, C: DimName> Zero for MatrixMN<N, R, C> where
N: Scalar + Zero + ClosedAdd,
DefaultAllocator: Allocator<N, R, C>,
impl<N: SimdRealField> Zero for Quaternion<N> where
N::Element: SimdRealField,
impl<N: SimdRealField> Zero for Quaternion<N> where
N::Element: SimdRealField,
impl<T: Clone + Num> Zero for Complex<T>
impl<T: Clone + Num> Zero for Complex<T>
impl<T: Clone + Integer> Zero for Ratio<T>
impl<T: Clone + Integer> Zero for Ratio<T>
impl Zero for AutoSimd<[f32; 2]>
impl Zero for AutoSimd<[f32; 2]>
impl Zero for AutoSimd<[f32; 4]>
impl Zero for AutoSimd<[f32; 4]>
impl Zero for AutoSimd<[f32; 8]>
impl Zero for AutoSimd<[f32; 8]>
impl Zero for AutoSimd<[f32; 16]>
impl Zero for AutoSimd<[f32; 16]>
impl Zero for AutoSimd<[f64; 2]>
impl Zero for AutoSimd<[f64; 2]>
impl Zero for AutoSimd<[f64; 4]>
impl Zero for AutoSimd<[f64; 4]>
impl Zero for AutoSimd<[f64; 8]>
impl Zero for AutoSimd<[f64; 8]>
impl Zero for AutoSimd<[i128; 1]>
impl Zero for AutoSimd<[i128; 1]>
impl Zero for AutoSimd<[i128; 2]>
impl Zero for AutoSimd<[i128; 2]>
impl Zero for AutoSimd<[i128; 4]>
impl Zero for AutoSimd<[i128; 4]>
impl Zero for AutoSimd<[i16; 2]>
impl Zero for AutoSimd<[i16; 2]>
impl Zero for AutoSimd<[i16; 4]>
impl Zero for AutoSimd<[i16; 4]>
impl Zero for AutoSimd<[i16; 8]>
impl Zero for AutoSimd<[i16; 8]>
impl Zero for AutoSimd<[i16; 16]>
impl Zero for AutoSimd<[i16; 16]>
impl Zero for AutoSimd<[i16; 32]>
impl Zero for AutoSimd<[i16; 32]>
impl Zero for AutoSimd<[i32; 2]>
impl Zero for AutoSimd<[i32; 2]>
impl Zero for AutoSimd<[i32; 4]>
impl Zero for AutoSimd<[i32; 4]>
impl Zero for AutoSimd<[i32; 8]>
impl Zero for AutoSimd<[i32; 8]>
impl Zero for AutoSimd<[i32; 16]>
impl Zero for AutoSimd<[i32; 16]>
impl Zero for AutoSimd<[i64; 2]>
impl Zero for AutoSimd<[i64; 2]>
impl Zero for AutoSimd<[i64; 4]>
impl Zero for AutoSimd<[i64; 4]>
impl Zero for AutoSimd<[i64; 8]>
impl Zero for AutoSimd<[i64; 8]>
impl Zero for AutoSimd<[i8; 2]>
impl Zero for AutoSimd<[i8; 2]>
impl Zero for AutoSimd<[i8; 4]>
impl Zero for AutoSimd<[i8; 4]>
impl Zero for AutoSimd<[i8; 8]>
impl Zero for AutoSimd<[i8; 8]>
impl Zero for AutoSimd<[i8; 16]>
impl Zero for AutoSimd<[i8; 16]>
impl Zero for AutoSimd<[i8; 32]>
impl Zero for AutoSimd<[i8; 32]>
impl Zero for AutoSimd<[isize; 2]>
impl Zero for AutoSimd<[isize; 2]>
impl Zero for AutoSimd<[isize; 4]>
impl Zero for AutoSimd<[isize; 4]>
impl Zero for AutoSimd<[isize; 8]>
impl Zero for AutoSimd<[isize; 8]>
impl Zero for AutoSimd<[u128; 1]>
impl Zero for AutoSimd<[u128; 1]>
impl Zero for AutoSimd<[u128; 2]>
impl Zero for AutoSimd<[u128; 2]>
impl Zero for AutoSimd<[u128; 4]>
impl Zero for AutoSimd<[u128; 4]>
impl Zero for AutoSimd<[u16; 2]>
impl Zero for AutoSimd<[u16; 2]>
impl Zero for AutoSimd<[u16; 4]>
impl Zero for AutoSimd<[u16; 4]>
impl Zero for AutoSimd<[u16; 8]>
impl Zero for AutoSimd<[u16; 8]>
impl Zero for AutoSimd<[u16; 16]>
impl Zero for AutoSimd<[u16; 16]>
impl Zero for AutoSimd<[u16; 32]>
impl Zero for AutoSimd<[u16; 32]>
impl Zero for AutoSimd<[u32; 2]>
impl Zero for AutoSimd<[u32; 2]>
impl Zero for AutoSimd<[u32; 4]>
impl Zero for AutoSimd<[u32; 4]>
impl Zero for AutoSimd<[u32; 8]>
impl Zero for AutoSimd<[u32; 8]>
impl Zero for AutoSimd<[u32; 16]>
impl Zero for AutoSimd<[u32; 16]>
impl Zero for AutoSimd<[u64; 2]>
impl Zero for AutoSimd<[u64; 2]>
impl Zero for AutoSimd<[u64; 4]>
impl Zero for AutoSimd<[u64; 4]>
impl Zero for AutoSimd<[u64; 8]>
impl Zero for AutoSimd<[u64; 8]>
impl Zero for AutoSimd<[u8; 2]>
impl Zero for AutoSimd<[u8; 2]>
impl Zero for AutoSimd<[u8; 4]>
impl Zero for AutoSimd<[u8; 4]>
impl Zero for AutoSimd<[u8; 8]>
impl Zero for AutoSimd<[u8; 8]>
impl Zero for AutoSimd<[u8; 16]>
impl Zero for AutoSimd<[u8; 16]>
impl Zero for AutoSimd<[u8; 32]>
impl Zero for AutoSimd<[u8; 32]>
impl Zero for AutoSimd<[usize; 2]>
impl Zero for AutoSimd<[usize; 2]>
impl Zero for AutoSimd<[usize; 4]>
impl Zero for AutoSimd<[usize; 4]>
impl Zero for AutoSimd<[usize; 8]>
impl Zero for AutoSimd<[usize; 8]>