Trait polkadot_sdk_frame::arithmetic::One
source · pub trait One: Sized + Mul<Output = Self> {
// Required method
fn one() -> Self;
// Provided methods
fn set_one(&mut self) { ... }
fn is_one(&self) -> bool
where Self: PartialEq { ... }
}
Expand description
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<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>>
source§impl<T> One for Unit<Quaternion<T>>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<T> One for Unit<Quaternion<T>>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
fn one() -> Unit<Quaternion<T>>
source§impl<T> One for Unit<Complex<T>>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<T> One for Unit<Complex<T>>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
source§impl<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>
source§impl<T> One for Quaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
impl<T> One for Quaternion<T>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
fn one() -> Quaternion<T>
source§impl<T, C, const D: usize> One for Transform<T, C, D>where
T: RealField,
C: TCategory,
Const<D>: DimNameAdd<Const<1>>,
DefaultAllocator: Allocator<T, <Const<D> as DimNameAdd<Const<1>>>::Output, <Const<D> as DimNameAdd<Const<1>>>::Output>,
impl<T, C, const D: usize> One for Transform<T, C, D>where
T: RealField,
C: TCategory,
Const<D>: DimNameAdd<Const<1>>,
DefaultAllocator: Allocator<T, <Const<D> as DimNameAdd<Const<1>>>::Output, <Const<D> as DimNameAdd<Const<1>>>::Output>,
source§impl<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,
source§impl<T, R, const D: usize> One for Similarity<T, R, D>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
R: AbstractRotation<T, D>,
impl<T, R, const D: usize> One for Similarity<T, R, D>where
T: SimdRealField,
<T as SimdValue>::Element: SimdRealField,
R: AbstractRotation<T, D>,
source§fn one() -> Similarity<T, R, D>
fn one() -> Similarity<T, R, D>
Creates a new identity similarity.