pub enum WidthMode {
Standard,
CjkAmbiguousWide,
}Expand description
Unicode character width measurement mode for search results.
Controls how display column offsets are computed — in particular for East Asian Ambiguous characters whose width differs between CJK and Western terminals.
Variants§
Standard
Standard Unicode width: EA Ambiguous characters are single-width (1 cell).
CjkAmbiguousWide
CJK-aware width: EA Ambiguous characters are double-width (2 cells).
Implementations§
Trait Implementations§
impl Copy for WidthMode
impl Eq for WidthMode
impl StructuralPartialEq for WidthMode
Auto Trait Implementations§
impl Freeze for WidthMode
impl RefUnwindSafe for WidthMode
impl Send for WidthMode
impl Sync for WidthMode
impl Unpin for WidthMode
impl UnsafeUnpin for WidthMode
impl UnwindSafe for WidthMode
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.