pub struct LayoutCursor {
pub segment_index: usize,
pub grapheme_index: usize,
}Expand description
A position in prepared text, independent of UTF-8 and UTF-16 encoding.
Fields§
§segment_index: usize§grapheme_index: usizeImplementations§
Trait Implementations§
Source§impl Clone for LayoutCursor
impl Clone for LayoutCursor
impl Copy for LayoutCursor
Source§impl Debug for LayoutCursor
impl Debug for LayoutCursor
Source§impl Default for LayoutCursor
impl Default for LayoutCursor
impl Eq for LayoutCursor
Source§impl Hash for LayoutCursor
impl Hash for LayoutCursor
Source§impl Ord for LayoutCursor
impl Ord for LayoutCursor
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 LayoutCursor
impl PartialEq for LayoutCursor
Source§impl PartialOrd for LayoutCursor
impl PartialOrd 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 UnsafeUnpin 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