pub struct ParsePoint {
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.
This serves as a serializable wrapper for Point
Fields§
§row: usize
§column: usize
Trait Implementations§
Source§impl Clone for ParsePoint
impl Clone for ParsePoint
Source§fn clone(&self) -> ParsePoint
fn clone(&self) -> ParsePoint
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParsePoint
impl Debug for ParsePoint
Source§impl Default for ParsePoint
impl Default for ParsePoint
Source§fn default() -> ParsePoint
fn default() -> ParsePoint
Returns the “default value” for a type. Read more
Source§impl From<Point> for ParsePoint
impl From<Point> for ParsePoint
Source§impl Hash for ParsePoint
impl Hash for ParsePoint
Source§impl Ord for ParsePoint
impl Ord for ParsePoint
Source§fn cmp(&self, other: &ParsePoint) -> Ordering
fn cmp(&self, other: &ParsePoint) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParsePoint
impl PartialEq for ParsePoint
Source§impl PartialOrd for ParsePoint
impl PartialOrd for ParsePoint
Source§impl Serialize for ParsePoint
impl Serialize for ParsePoint
impl Copy for ParsePoint
impl Eq for ParsePoint
impl StructuralPartialEq for ParsePoint
Auto Trait Implementations§
impl Freeze for ParsePoint
impl RefUnwindSafe for ParsePoint
impl Send for ParsePoint
impl Sync for ParsePoint
impl Unpin for ParsePoint
impl UnwindSafe for ParsePoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.