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 for Point
impl PartialEq for Point
source§impl PartialOrd for Point
impl PartialOrd 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 StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
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