pub struct Point {
pub row: u32,
pub column: u32,
}
Fields§
§row: u32
§column: u32
Implementations§
Trait Implementations§
§impl<'a> AddAssign<&'a Point> for Point
impl<'a> AddAssign<&'a Point> for Point
§fn add_assign(&mut self, other: &'a Point)
fn add_assign(&mut self, other: &'a Point)
Performs the
+=
operation. Read more§impl AddAssign<Point> for Point
impl AddAssign<Point> for Point
§fn add_assign(&mut self, other: Point)
fn add_assign(&mut self, other: Point)
Performs the
+=
operation. Read more§impl<'a> Dimension<'a, ChunkSummary> for Point
impl<'a> Dimension<'a, ChunkSummary> for Point
fn add_summary(&mut self, summary: &'a ChunkSummary, _: &())
fn from_summary(summary: &'a S, cx: &<S as Summary>::Context) -> Self
source§impl FromAnchor for Point
impl FromAnchor for Point
fn from_anchor(anchor: &Anchor, snapshot: &BufferSnapshot) -> Self
§impl Ord for Point
impl Ord for Point
§impl PartialOrd<Point> for Point
impl PartialOrd<Point> for Point
§fn partial_cmp(&self, other: &Point) -> Option<Ordering>
fn partial_cmp(&self, other: &Point) -> Option<Ordering>
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§impl TextDimension for Point
impl TextDimension for Point
fn from_text_summary(summary: &TextSummary) -> Point
fn add_assign(&mut self, other: &Point)
source§impl ToPointUtf16 for Point
impl ToPointUtf16 for Point
fn to_point_utf16(&self, snapshot: &BufferSnapshot) -> PointUtf16
impl 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.