Trait KernelMetadata

Source
pub trait KernelMetadata:
    Send
    + Sync
    + 'static {
    // Required method
    fn id(&self) -> KernelId;

    // Provided method
    fn name(&self) -> &'static str { ... }
}
Expand description

Implement this trait to create a kernel definition.

Required Methods§

Source

fn id(&self) -> KernelId

Identifier for the kernel, used for caching kernel compilation.

Provided Methods§

Source

fn name(&self) -> &'static str

Name of the kernel for debugging.

Implementations on Foreign Types§

Source§

impl<C: Compiler> KernelMetadata for Box<dyn CubeTask<C>>

Source§

fn id(&self) -> KernelId

Source§

fn name(&self) -> &'static str

Implementors§