tblgen::error

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", so this trait is not object safe.

Implementors§

Source§

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