pub enum CharWidthMode {
Mono,
Half,
Full,
}
Expand description
Determines how character widths are calculated during code parsing.
This enum controls how ambiguous-width characters (such as those in East Asian scripts) are interpreted during layout calculations. It affects how each character contributes to the horizontal spacing of visual elements.
Variants§
Mono
Treat all characters as width 1.
Half
Treat ambiguous-width characters as half-width.
Full
Treat ambiguous-width characters as full-width.
Trait Implementations§
Source§impl Clone for CharWidthMode
impl Clone for CharWidthMode
Source§fn clone(&self) -> CharWidthMode
fn clone(&self) -> CharWidthMode
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 moreAuto Trait Implementations§
impl Freeze for CharWidthMode
impl RefUnwindSafe for CharWidthMode
impl Send for CharWidthMode
impl Sync for CharWidthMode
impl Unpin for CharWidthMode
impl UnwindSafe for CharWidthMode
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