pub enum WidthMethod {
WcWidth,
Unicode,
}Expand description
Width calculation method for ambiguous-width characters.
Variants§
WcWidth
POSIX-like wcwidth: ambiguous width = 1.
Unicode
Unicode East Asian Width: ambiguous width = 2.
Trait Implementations§
Source§impl Clone for WidthMethod
impl Clone for WidthMethod
Source§fn clone(&self) -> WidthMethod
fn clone(&self) -> WidthMethod
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 WidthMethod
impl Debug for WidthMethod
Source§impl Default for WidthMethod
impl Default for WidthMethod
Source§fn default() -> WidthMethod
fn default() -> WidthMethod
Returns the “default value” for a type. Read more
Source§impl PartialEq for WidthMethod
impl PartialEq for WidthMethod
impl Copy for WidthMethod
impl Eq for WidthMethod
impl StructuralPartialEq for WidthMethod
Auto Trait Implementations§
impl Freeze for WidthMethod
impl RefUnwindSafe for WidthMethod
impl Send for WidthMethod
impl Sync for WidthMethod
impl Unpin for WidthMethod
impl UnwindSafe for WidthMethod
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