pub struct LayoutCursor {
pub line: usize,
pub layout: usize,
pub glyph: usize,
}
Expand description
The position of a cursor within a [Buffer
].
Fields§
§line: usize
Index of [BufferLine
] in [Buffer::lines
]
layout: usize
Index of [LayoutLine
] in [BufferLine::layout
]
glyph: usize
Index of [LayoutGlyph
] in [LayoutLine::glyphs
]
Implementations§
Source§impl LayoutCursor
impl LayoutCursor
Trait Implementations§
Source§impl Clone for LayoutCursor
impl Clone for LayoutCursor
Source§fn clone(&self) -> LayoutCursor
fn clone(&self) -> LayoutCursor
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 LayoutCursor
impl Debug for LayoutCursor
Source§impl Ord for LayoutCursor
impl Ord for LayoutCursor
Source§fn cmp(&self, other: &LayoutCursor) -> Ordering
fn cmp(&self, other: &LayoutCursor) -> 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 LayoutCursor
impl PartialEq for LayoutCursor
Source§impl PartialOrd for LayoutCursor
impl PartialOrd for LayoutCursor
impl Copy for LayoutCursor
impl Eq for LayoutCursor
impl StructuralPartialEq for LayoutCursor
Auto Trait Implementations§
impl Freeze for LayoutCursor
impl RefUnwindSafe for LayoutCursor
impl Send for LayoutCursor
impl Sync for LayoutCursor
impl Unpin for LayoutCursor
impl UnwindSafe for LayoutCursor
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.