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§