Trait erl_tokenize::PositionRange
source · pub trait PositionRange {
// Required methods
fn start_position(&self) -> Position;
fn end_position(&self) -> Position;
}
Expand description
This trait allows to get a (half-open) range where the subject is located.
Required Methods§
sourcefn start_position(&self) -> Position
fn start_position(&self) -> Position
Returns the (inclusive) start position of this.
sourcefn end_position(&self) -> Position
fn end_position(&self) -> Position
Returns the (exclusive) end position of this.