pub enum AmbiguousWidthMode {
Narrow,
Wide,
}Expand description
How the terminal renders East-Asian-ambiguous-width glyphs (UAX #11).
Every box-drawing character (U+2500–257F) is “Ambiguous”: terminals
configured to render the set as double width (xterm cjkWidth, iTerm2’s
ambiguous-width checkbox, some CJK-locale defaults) draw each glyph as two
cells, which breaks frames and tables built from them. Not detectable at
runtime, so this is a user decision (ui.ambiguous_width).
Variants§
Narrow
Ambiguous glyphs occupy one cell (the common default).
Wide
Ambiguous glyphs occupy two cells; chrome degrades to ASCII and width math counts the glyphs as wide.
Trait Implementations§
Source§impl Clone for AmbiguousWidthMode
impl Clone for AmbiguousWidthMode
impl Copy for AmbiguousWidthMode
Source§impl Debug for AmbiguousWidthMode
impl Debug for AmbiguousWidthMode
Source§impl Default for AmbiguousWidthMode
impl Default for AmbiguousWidthMode
Source§impl<'de> Deserialize<'de> for AmbiguousWidthMode
impl<'de> Deserialize<'de> for AmbiguousWidthMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AmbiguousWidthMode
Source§impl JsonSchema for AmbiguousWidthMode
impl JsonSchema for AmbiguousWidthMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AmbiguousWidthMode
impl PartialEq for AmbiguousWidthMode
Source§impl Serialize for AmbiguousWidthMode
impl Serialize for AmbiguousWidthMode
impl StructuralPartialEq for AmbiguousWidthMode
Auto Trait Implementations§
impl Forget for AmbiguousWidthMode
impl Freeze for AmbiguousWidthMode
impl Move for AmbiguousWidthMode
impl RefUnwindSafe for AmbiguousWidthMode
impl Send for AmbiguousWidthMode
impl Sync for AmbiguousWidthMode
impl Unpin for AmbiguousWidthMode
impl UnsafeUnpin for AmbiguousWidthMode
impl UnwindSafe for AmbiguousWidthMode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.