Skip to main content

LoadedWithin

Trait LoadedWithin 

Source
pub trait LoadedWithin {
    type Output;

    // Required method
    fn within(self, loaded: &Loaded) -> Self::Output;
}
Expand description

Convert a LoadError or compatible Result to a SourceDiagnostic or SourceResult by adding the Loaded context.

Required Associated Types§

Source

type Output

The enriched type that has the context factored in.

Required Methods§

Source

fn within(self, loaded: &Loaded) -> Self::Output

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 for Result<T, E>
where E: Into<LoadError>,

Implementors§