Struct SourceKernel
pub struct SourceKernel<K> { /* private fields */ }
Expand description
Wraps a kernel source into a cube task.
Implementations§
§impl<K> SourceKernel<K>
impl<K> SourceKernel<K>
pub fn new(kernel_source: K, cube_dim: CubeDim) -> SourceKernel<K>
pub fn new(kernel_source: K, cube_dim: CubeDim) -> SourceKernel<K>
Constructs a new SourceKernel
.
Trait Implementations§
§impl<C, K> CubeTask<C> for SourceKernel<K>where
C: Compiler,
K: KernelSource,
impl<C, K> CubeTask<C> for SourceKernel<K>where
C: Compiler,
K: KernelSource,
Auto Trait Implementations§
impl<K> Freeze for SourceKernel<K>where
K: Freeze,
impl<K> RefUnwindSafe for SourceKernel<K>where
K: RefUnwindSafe,
impl<K> Send for SourceKernel<K>where
K: Send,
impl<K> Sync for SourceKernel<K>where
K: Sync,
impl<K> Unpin for SourceKernel<K>where
K: Unpin,
impl<K> UnwindSafe for SourceKernel<K>where
K: 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> 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