Trait polkadot_service::runtime_traits::One
source · pub trait One: Sized + 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§
source§impl<T> One for Wrapping<T>where
T: One,
Wrapping<T>: Mul<Wrapping<T>, Output = Wrapping<T>>,
impl<T> One for Wrapping<T>where
T: One,
Wrapping<T>: Mul<Wrapping<T>, Output = Wrapping<T>>,
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.