tiger_lib::report::error_loc

Trait ErrorLoc

Source
pub trait ErrorLoc {
    // Required method
    fn into_loc(self) -> Loc;

    // Provided method
    fn loc_length(&self) -> usize { ... }
}
Expand description

This trait lets the error reporting functions accept a variety of things as the error locator.

Required Methods§

Source

fn into_loc(self) -> Loc

Provided Methods§

Source

fn loc_length(&self) -> usize

Implementors§