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.