Skip to main content

WithLocation

Trait WithLocation 

Source
pub trait WithLocation: Error + Sized {
    // Provided method
    fn with_location<L: SourceLoc>(self, location: L) -> SourceError<Self> { ... }
}

Provided Methods§

Source

fn with_location<L: SourceLoc>(self, location: L) -> SourceError<Self>

Creates a SourceError wrapper.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<E> WithLocation for E
where E: Error,