pub trait One: Mul<Self, Output = Self> {
fn one() -> Self;
fn set_one(&mut self) { ... }
fn is_one(&self) -> bool
where
Self: PartialEq<Self>,
{ ... }
}
Expand description
Required Methods
Provided Methods
Implementations on Foreign Types
sourceimpl<T, R, const D: usize> One for Isometry<T, R, D> where
T: SimdRealField,
R: AbstractRotation<T, D>,
<T as SimdValue>::Element: SimdRealField,
impl<T, R, const D: usize> One for Isometry<T, R, D> where
T: SimdRealField,
R: AbstractRotation<T, D>,
<T as SimdValue>::Element: SimdRealField,
sourceimpl<T> One for Unit<DualQuaternion<T>> where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<T> One for Unit<DualQuaternion<T>> where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
fn one() -> Unit<DualQuaternion<T>>
sourceimpl<T> One for DualQuaternion<T> where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<T> One for DualQuaternion<T> where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
fn one() -> DualQuaternion<T>
sourceimpl<T, D> One for Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer> where
D: DimName,
T: Scalar + Zero + One + ClosedMul<T> + ClosedAdd<T>,
DefaultAllocator: Allocator<T, D, D>,
impl<T, D> One for Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer> where
D: DimName,
T: Scalar + Zero + One + ClosedMul<T> + ClosedAdd<T>,
DefaultAllocator: Allocator<T, D, D>,
sourceimpl<T, const D: usize> One for Rotation<T, D> where
T: Scalar + Zero + One + ClosedAdd<T> + ClosedMul<T>,
impl<T, const D: usize> One for Rotation<T, D> where
T: Scalar + Zero + One + ClosedAdd<T> + ClosedMul<T>,
sourceimpl<T, R, const D: usize> One for Similarity<T, R, D> where
T: SimdRealField,
R: AbstractRotation<T, D>,
<T as SimdValue>::Element: SimdRealField,
impl<T, R, const D: usize> One for Similarity<T, R, D> where
T: SimdRealField,
R: AbstractRotation<T, D>,
<T as SimdValue>::Element: SimdRealField,
sourcefn one() -> Similarity<T, R, D>
fn one() -> Similarity<T, R, D>
Creates a new identity similarity.