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