Trait KernelSource
pub trait KernelSource:
Send
+ 'static
+ Sync {
// Required methods
fn source(&self) -> SourceTemplate;
fn id(&self) -> KernelId;
}
Expand description
Kernel source to create a source
Required Methods§
fn source(&self) -> SourceTemplate
fn source(&self) -> SourceTemplate
Convert to source
fn id(&self) -> KernelId
fn id(&self) -> KernelId
Identifier for the kernel, used for caching kernel compilation.