pub struct GraphemeSpan {
pub byte: usize,
pub cell: DisplayColumn,
pub width: usize,
}Expand description
One grapheme cluster’s placement on the line.
Fields§
§byte: usizeByte offset of the cluster’s start within the line.
cell: DisplayColumnDisplay cell where the cluster starts.
width: usizeDisplay width in cells (0 for pure combining/zero-width, 2 for CJK/emoji, tab expands to its stop).
Trait Implementations§
Source§impl Clone for GraphemeSpan
impl Clone for GraphemeSpan
Source§fn clone(&self) -> GraphemeSpan
fn clone(&self) -> GraphemeSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GraphemeSpan
Source§impl Debug for GraphemeSpan
impl Debug for GraphemeSpan
impl Eq for GraphemeSpan
Source§impl PartialEq for GraphemeSpan
impl PartialEq for GraphemeSpan
impl StructuralPartialEq for GraphemeSpan
Auto Trait Implementations§
impl Freeze for GraphemeSpan
impl RefUnwindSafe for GraphemeSpan
impl Send for GraphemeSpan
impl Sync for GraphemeSpan
impl Unpin for GraphemeSpan
impl UnsafeUnpin for GraphemeSpan
impl UnwindSafe for GraphemeSpan
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