pub struct DisplayPoint { /* private fields */ }Expand description
A visual position: display row + cell column (one cell = one Unicode
scalar’s monospace advance; a tab occupies 1..=tab_size cells).
Fields are private and the constructor is pub(crate): no code in the
widget crate can fabricate a display point — it must route through
TabMap::to_display/TabMap::clip (the crate boundary is the
enforcement line). Ordered row-major, so display points compare in
visual document order for range and decoration math.
Implementations§
Trait Implementations§
Source§impl Clone for DisplayPoint
impl Clone for DisplayPoint
impl Copy for DisplayPoint
Source§impl Debug for DisplayPoint
impl Debug for DisplayPoint
impl Eq for DisplayPoint
Source§impl Ord for DisplayPoint
impl Ord for DisplayPoint
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DisplayPoint
impl PartialEq for DisplayPoint
Source§impl PartialOrd for DisplayPoint
impl PartialOrd for DisplayPoint
impl StructuralPartialEq for DisplayPoint
Auto Trait Implementations§
impl Freeze for DisplayPoint
impl RefUnwindSafe for DisplayPoint
impl Send for DisplayPoint
impl Sync for DisplayPoint
impl Unpin for DisplayPoint
impl UnsafeUnpin for DisplayPoint
impl UnwindSafe for DisplayPoint
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.