Skip to main content

LibraryLoader

Trait LibraryLoader 

Source
pub trait LibraryLoader {
    // Required method
    fn load_library(&self, path: &str) -> Result<Program, String>;
}
Expand description

Trait for loading external libraries

Required Methods§

Source

fn load_library(&self, path: &str) -> Result<Program, String>

Load a library from the given path and return its Program AST

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§