Skip to main content

KernelOp

Trait KernelOp 

Source
pub trait KernelOp: Send + 'static {
    // Required method
    fn op_name(&self) -> &'static str;
}
Expand description

Marker for any typed op envelope. The default impl is empty — the trait exists to enable bound-by-name patterns in generic pipelines without imposing a specific shape on the op.

Required Methods§

Source

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

Display name for telemetry / tracing. Backends that share ops across vendors should agree on names (e.g. "sgemm").

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§