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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".