pub struct ValidatedKernelApproximation<K, M, const N: usize>{ /* private fields */ }Expand description
Zero-cost wrapper for compile-time validated approximations ValidatedKernelApproximation
Implementations§
Source§impl<K, M, const N: usize> ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> ValidatedKernelApproximation<K, M, N>
Sourcepub const fn performance_info() -> (PerformanceTier, ComplexityClass, ComplexityClass)
pub const fn performance_info() -> (PerformanceTier, ComplexityClass, ComplexityClass)
Get performance information at compile time
Sourcepub const fn is_optimal() -> bool
pub const fn is_optimal() -> bool
Check if this combination is optimal
Trait Implementations§
Source§impl<K, M, const N: usize> Clone for ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> Clone for ValidatedKernelApproximation<K, M, N>
Source§fn clone(&self) -> ValidatedKernelApproximation<K, M, N>
fn clone(&self) -> ValidatedKernelApproximation<K, M, N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K, M, const N: usize> Debug for ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> Debug for ValidatedKernelApproximation<K, M, N>
Source§impl<K, M, const N: usize> Default for ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> Default for ValidatedKernelApproximation<K, M, N>
Auto Trait Implementations§
impl<K, M, const N: usize> Freeze for ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> RefUnwindSafe for ValidatedKernelApproximation<K, M, N>where
K: RefUnwindSafe,
M: RefUnwindSafe,
impl<K, M, const N: usize> Send for ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> Sync for ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> Unpin for ValidatedKernelApproximation<K, M, N>
impl<K, M, const N: usize> UnwindSafe for ValidatedKernelApproximation<K, M, N>where
K: UnwindSafe,
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more