Skip to main content

Kernel

Trait Kernel 

Source
pub trait Kernel: Sized + 'static {
    type Input<'a>;
    type Output;
}
Expand description

Marker trait that binds typed Input and Output to a compute operation.

Implement this on a zero-sized marker struct, the struct itself carries no data; it just names the operation so Rust can resolve the right dispatch.

Required Associated Types§

Source

type Input<'a>

Input type for this kernel. The lifetime parameter allows borrowing host data (records, schema) without copying.

Source

type Output

Output type produced after the kernel completes and results are downloaded back to host memory.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§