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§

source

fn start_position(&self) -> Position

Returns the (inclusive) start position of this.

source

fn end_position(&self) -> Position

Returns the (exclusive) end position of this.

Implementations on Foreign Types§

source§

impl<T: PositionRange> PositionRange for Box<T>

Implementors§