pub struct Point {
pub row: u32,
pub column: u32,
}
Fields§
§row: u32
§column: u32
Implementations§
Trait Implementations§
source§impl<'a> AddAssign<&'a Point> for Point
impl<'a> AddAssign<&'a Point> for Point
source§fn add_assign(&mut self, other: &'a Point)
fn add_assign(&mut self, other: &'a Point)
Performs the
+=
operation. Read moresource§impl AddAssign<Point> for Point
impl AddAssign<Point> for Point
source§fn add_assign(&mut self, other: Point)
fn add_assign(&mut self, other: Point)
Performs the
+=
operation. Read moresource§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<'a> Dimension<'a, ExcerptSummary> for Point
impl<'a> Dimension<'a, ExcerptSummary> for Point
fn add_summary(&mut self, summary: &'a ExcerptSummary, _: &())
fn from_summary(summary: &'a S, cx: &<S as Summary>::Context) -> Self
source§impl<'a> Dimension<'a, TransformSummary> for Point
impl<'a> Dimension<'a, TransformSummary> for Point
fn add_summary(&mut self, summary: &'a TransformSummary, _: &())
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) -> Point
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 moresource§impl TextDimension for Point
impl TextDimension for Point
fn from_text_summary(summary: &TextSummary) -> Point
fn add_assign(&mut self, other: &Point)
source§impl ToDisplayPoint for Point
impl ToDisplayPoint for Point
fn to_display_point(&self, map: &DisplaySnapshot) -> DisplayPoint
source§impl ToOffset for Point
impl ToOffset for Point
fn to_offset<'a>(&self, snapshot: &MultiBufferSnapshot) -> usize
source§impl ToPointUtf16 for Point
impl ToPointUtf16 for Point
fn to_point_utf16(&self, snapshot: &BufferSnapshot) -> PointUtf16
source§impl ToPointUtf16 for Point
impl ToPointUtf16 for Point
fn to_point_utf16<'a>(&self, snapshot: &MultiBufferSnapshot) -> 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.source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<K> MapSeekTarget<K> for Kwhere
K: Debug + Ord,
impl<K> MapSeekTarget<K> for Kwhere K: Debug + Ord,
fn cmp_cursor(&self, cursor_location: &K) -> Ordering
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.