[−][src]Trait dual_num::One
Defines a multiplicative identity element for Self
.
Required methods
fn one() -> Self
Provided methods
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
Self: PartialEq<Self>,
Returns true
if self
is equal to the multiplicative identity.
For performance reasons, it's best to implement this manually.
After a semver bump, this method will be required, and the
where Self: PartialEq
bound will be removed.
Implementations on Foreign Types
impl<N> One for Unit<Quaternion<N>> where
N: Real,
[src]
impl<N> One for Unit<Quaternion<N>> where
N: Real,
impl<N> One for Quaternion<N> where
N: Real,
[src]
impl<N> One for Quaternion<N> where
N: Real,
impl<N, D> One for Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer> where
D: DimName,
N: Scalar + Zero + One + ClosedMul<N> + ClosedAdd<N>,
DefaultAllocator: Allocator<N, D, D>,
[src]
impl<N, D> One for Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer> where
D: DimName,
N: Scalar + Zero + One + ClosedMul<N> + ClosedAdd<N>,
DefaultAllocator: Allocator<N, D, D>,
fn one() -> Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer> | [src] |
fn is_one(&self) -> bool where | [src] |
impl<N, D, R> One for Similarity<N, D, R> where
D: DimName,
N: Real,
R: Rotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D, R> One for Similarity<N, D, R> where
D: DimName,
N: Real,
R: Rotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D, U1>,
fn one() -> Similarity<N, D, R> | [src] |
Creates a new identity similarity.
fn is_one(&self) -> bool where | [src] |
impl<N, D> One for Rotation<N, D> where
D: DimName,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
DefaultAllocator: Allocator<N, D, D>,
[src]
impl<N, D> One for Rotation<N, D> where
D: DimName,
N: Scalar + Zero + One + ClosedAdd<N> + ClosedMul<N>,
DefaultAllocator: Allocator<N, D, D>,
impl<N, D> One for Translation<N, D> where
D: DimName,
N: Scalar + Zero + ClosedAdd<N>,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D> One for Translation<N, D> where
D: DimName,
N: Scalar + Zero + ClosedAdd<N>,
DefaultAllocator: Allocator<N, D, U1>,
impl<N, D, C> One for Transform<N, D, C> where
C: TCategory,
D: DimNameAdd<U1>,
N: Real,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
[src]
impl<N, D, C> One for Transform<N, D, C> where
C: TCategory,
D: DimNameAdd<U1>,
N: Real,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
fn one() -> Transform<N, D, C> | [src] |
Creates a new identity transform.
fn is_one(&self) -> bool where | [src] |
impl<N> One for Unit<Complex<N>> where
N: Real,
[src]
impl<N> One for Unit<Complex<N>> where
N: Real,
impl<N, D, R> One for Isometry<N, D, R> where
D: DimName,
N: Real,
R: Rotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D, U1>,
[src]
impl<N, D, R> One for Isometry<N, D, R> where
D: DimName,
N: Real,
R: Rotation<Point<N, D>>,
DefaultAllocator: Allocator<N, D, U1>,
fn one() -> Isometry<N, D, R> | [src] |
Creates a new identity isometry.
fn is_one(&self) -> bool where | [src] |
impl One for u8
[src]
impl One for u8
impl One for u128
[src]
impl One for u128
impl One for i128
[src]
impl One for i128
impl One for usize
[src]
impl One for usize
impl One for u32
[src]
impl One for u32
impl<T> One for Wrapping<T> where
T: One,
Wrapping<T>: Mul<Wrapping<T>>,
<Wrapping<T> as Mul<Wrapping<T>>>::Output == Wrapping<T>,
[src]
impl<T> One for Wrapping<T> where
T: One,
Wrapping<T>: Mul<Wrapping<T>>,
<Wrapping<T> as Mul<Wrapping<T>>>::Output == Wrapping<T>,
impl One for f32
[src]
impl One for f32
impl One for u16
[src]
impl One for u16
impl One for isize
[src]
impl One for isize
impl One for f64
[src]
impl One for f64
impl One for i16
[src]
impl One for i16
impl One for i32
[src]
impl One for i32
impl One for u64
[src]
impl One for u64
impl One for i64
[src]
impl One for i64
impl One for i8
[src]
impl One for i8
impl<T> One for Complex<T> where
T: Clone + Num,
[src]
impl<T> One for Complex<T> where
T: Clone + Num,
impl One for Id<Multiplicative>
Loading content...
impl One for Id<Multiplicative>