Skip to main content

AddProgram

Trait AddProgram 

Source
pub trait AddProgram {
    // Required method
    fn add(
        &mut self,
        compiled: Option<Rc<Compiled>>,
        program: &Program,
        size: usize,
    ) -> usize;
}
Expand description

Adding a program to the interpreter’s run unit by its source’s PROGRAM-ID and FILE-CONTROL.

Required Methods§

Source

fn add( &mut self, compiled: Option<Rc<Compiled>>, program: &Program, size: usize, ) -> usize

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§