pub trait WithLocation: Error + Sized {
// Provided method
fn with_location<L: SourceLoc>(self, location: L) -> SourceError<Self> { ... }
}
Provided Methods§
Sourcefn with_location<L: SourceLoc>(self, location: L) -> SourceError<Self>
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", so this trait is not object safe.