pub struct ClusterEntry {
pub byte_start: u32,
pub byte_end: u32,
pub grapheme_index: u32,
pub cell_start: u32,
pub cell_width: u8,
}Expand description
A single entry in the cluster map, representing one grapheme cluster.
Fields§
§byte_start: u32Start byte offset in the source string (inclusive).
byte_end: u32End byte offset in the source string (exclusive).
grapheme_index: u32Grapheme index (0-based position among graphemes).
cell_start: u32Start visual cell column (inclusive).
cell_width: u8Display width in cells (1 for normal, 2 for wide CJK/emoji).
Implementations§
Source§impl ClusterEntry
impl ClusterEntry
Trait Implementations§
Source§impl Clone for ClusterEntry
impl Clone for ClusterEntry
Source§fn clone(&self) -> ClusterEntry
fn clone(&self) -> ClusterEntry
Returns a duplicate 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 ClusterEntry
impl Debug for ClusterEntry
Source§impl PartialEq for ClusterEntry
impl PartialEq for ClusterEntry
impl Copy for ClusterEntry
impl Eq for ClusterEntry
impl StructuralPartialEq for ClusterEntry
Auto Trait Implementations§
impl Freeze for ClusterEntry
impl RefUnwindSafe for ClusterEntry
impl Send for ClusterEntry
impl Sync for ClusterEntry
impl Unpin for ClusterEntry
impl UnsafeUnpin for ClusterEntry
impl UnwindSafe for ClusterEntry
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> 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.