Trait starlark::eval::FileLoader

source ·
pub trait FileLoader {
    // Required method
    fn load(&self, path: &str) -> Result<FrozenModule>;
}
Expand description

A trait for turning a path given by a load() statement into a FrozenModule.

Required Methods§

source

fn load(&self, path: &str) -> Result<FrozenModule>

Open the file given by the load statement path.

Implementors§