Trait LoadedWithin

pub trait LoadedWithin<T> {
    // Required method
    fn within(self, loaded: &Loaded) -> Result<T, EcoVec<SourceDiagnostic>>;
}
Expand description

Convert a LoadResult to a SourceResult by adding the [Loaded] context.

Required Methods§

fn within(self, loaded: &Loaded) -> Result<T, EcoVec<SourceDiagnostic>>

Report an error, possibly in an external file.

Implementations on Foreign Types§

§

impl<T, E> LoadedWithin<T> for Result<T, E>
where E: Into<LoadError>,

§

fn within(self, loaded: &Loaded) -> Result<T, EcoVec<SourceDiagnostic>>

Implementors§