Trait HasLoc

Source
pub trait HasLoc {
    // Required method
    fn loc(&self) -> Loc;
}
Expand description

Many objects have location information. HasLoc allows you to call HasLoc::loc to get the span information.

Required Methods§

Source

fn loc(&self) -> Loc

Implementations on Foreign Types§

Source§

impl HasLoc for Arc<Expr>

Source§

fn loc(&self) -> Loc

Implementors§