pub struct Point {
pub row: usize,
pub column: usize,
}Expand description
A position within a text document.
The position is represented by a zero-based row and column.
The exact meaning of column depends on the document’s coordinate
system, such as byte offset, character offset, or display column.
Fields§
§row: usizeThe zero-based row of the position.
column: usizeThe zero-based column of the position.
Implementations§
Trait Implementations§
impl 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 UnsafeUnpin 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