Skip to main content

LoadedWithin

Trait LoadedWithin 

Source
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§

Source

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

Report an error, possibly in an external file.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Implementors§