rune::compile

Trait SourceLoader

Source
pub trait SourceLoader {
    // Required method
    fn load(
        &mut self,
        root: &Path,
        item: &Item,
        span: &dyn Spanned,
    ) -> Result<Source>;
}
Expand description

A source loader.

Required Methods§

Source

fn load( &mut self, root: &Path, item: &Item, span: &dyn Spanned, ) -> Result<Source>

Load the given URL.

Implementors§

Source§

impl SourceLoader for FileSourceLoader

Available on crate feature std only.
Source§

impl SourceLoader for NoopSourceLoader