Struct tree_sitter::Range
source · pub struct Range {
pub start_byte: usize,
pub end_byte: usize,
pub start_point: Point,
pub end_point: Point,
}
Expand description
A range of positions in a multi-line text document, both in terms of bytes and of rows and columns.
Fields§
§start_byte: usize
§end_byte: usize
§start_point: Point
§end_point: Point
Trait Implementations§
source§impl Ord for Range
impl Ord for Range
source§impl PartialEq<Range> for Range
impl PartialEq<Range> for Range
source§impl PartialOrd<Range> for Range
impl PartialOrd<Range> for Range
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more