pub enum KernelInner<K1: Inner, K2: Inner> {
Dense(K1),
Sparse(K2),
}
Expand description
Allows a kernel to have either a dense or a sparse inner matrix in a way that is transparent to the user
Variants§
Trait Implementations§
Source§impl<K1: Clone + Inner, K2: Clone + Inner> Clone for KernelInner<K1, K2>
impl<K1: Clone + Inner, K2: Clone + Inner> Clone for KernelInner<K1, K2>
Source§fn clone(&self) -> KernelInner<K1, K2>
fn clone(&self) -> KernelInner<K1, K2>
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 moreimpl<K1: Inner, K2: Inner> StructuralPartialEq for KernelInner<K1, K2>
Auto Trait Implementations§
impl<K1, K2> Freeze for KernelInner<K1, K2>
impl<K1, K2> RefUnwindSafe for KernelInner<K1, K2>where
K1: RefUnwindSafe,
K2: RefUnwindSafe,
impl<K1, K2> Send for KernelInner<K1, K2>
impl<K1, K2> Sync for KernelInner<K1, K2>
impl<K1, K2> Unpin for KernelInner<K1, K2>
impl<K1, K2> UnwindSafe for KernelInner<K1, K2>where
K1: UnwindSafe,
K2: 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