Trait consprob_trained::One
source · pub trait One: Sized + Mul<Self, Output = Self> {
// Required method
fn one() -> Self;
// Provided methods
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, const D: usize> One for Translation<T, D>where
T: Scalar + Zero + ClosedAdd<T>,
impl<T, const D: usize> One for Translation<T, D>where T: Scalar + Zero + ClosedAdd<T>,
fn one() -> Translation<T, D>
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, 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.