Skip to main content

ProgramKernel

Trait ProgramKernel 

Source
pub trait ProgramKernel {
    // Required method
    fn split_program(&mut self) -> (&mut dyn Kernel, Arc<PolydatProgram>);
}
Expand description

A kernel that carries the interpreter program its names resolve on: a scope kernel, or an interpreter kernel.

Required Methods§

Source

fn split_program(&mut self) -> (&mut dyn Kernel, Arc<PolydatProgram>)

The running kernel and its program.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ProgramKernel for PolydatKernel

Source§

fn split_program(&mut self) -> (&mut dyn Kernel, Arc<PolydatProgram>)

Implementors§