pub trait Position {
// Required method
fn position(&self) -> TextPosition;
}
Expand description
Get the position in the document corresponding to the object
This trait is implemented by parsers, lexers and errors.
Required Methods§
sourcefn position(&self) -> TextPosition
fn position(&self) -> TextPosition
Returns the current position or a position corresponding to the object.