pub struct Options {
pub ambiguous_is_narrow: bool,
pub count_ansi_escape_codes: bool,
}Expand description
Options for string_width.
Fields§
§ambiguous_is_narrow: boolTreat East Asian Ambiguous characters as narrow (1 column).
Default: true (non-CJK / terminal-generic context).
count_ansi_escape_codes: boolCount ANSI escape code bytes towards the width instead of stripping them.
Default: false.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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