pub trait OptionalCodeLocation {
    // Required method
    fn loc(&self) -> Option<Loc>;
}
Expand description

Structs should implement this trait to return an optional location

Required Methods§

source

fn loc(&self) -> Option<Loc>

Implementors§