Skip to main content

ErrorWithLocation

Trait ErrorWithLocation 

Source
pub trait ErrorWithLocation: Display {
    // Required method
    fn location(&self) -> Location;
}
Expand description

Represents an error that has a location in the source code.

Required Methods§

Source

fn location(&self) -> Location

Returns the location of the error in the source code.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ErrorWithLocation for Error

Implementors§