Struct tree_sitter::Point
source · pub struct Point {
pub row: usize,
pub column: usize,
}
Expand description
A position in a multi-line text document, in terms of rows and columns.
Rows and columns are zero-based.
Fields§
§row: usize
§column: usize
Implementations§
Trait Implementations§
source§impl Ord for Point
impl Ord for Point
source§impl PartialEq<Point> for Point
impl PartialEq<Point> for Point
source§impl PartialOrd<Point> for Point
impl PartialOrd<Point> for Point
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 moreimpl Copy for Point
impl Eq for Point
impl StructuralEq for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more