Trait CodeLocation

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

Structs can implement this trait to easily return their loc

Required Methods§

Source

fn loc(&self) -> Loc

Implementors§