tblgen_alt::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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