Skip to main content

KernelMetadata

Trait KernelMetadata 

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

    // 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.

Source

fn address_type(&self) -> ElemType

Type of addresses in this kernel

Provided Methods§

Source

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

Name of the kernel for debugging.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§