rune::workspace

Trait SourceLoader

Source
pub trait SourceLoader {
    // Required method
    fn load(
        &mut self,
        span: Span,
        path: &Path,
    ) -> Result<Source, WorkspaceError>;
}
Available on crate feature workspace only.
Expand description

A source loader.

Required Methods§

Source

fn load(&mut self, span: Span, path: &Path) -> Result<Source, WorkspaceError>

Load the given path.

Implementors§