unicode_width::tables

Struct WidthInfo

Source
struct WidthInfo(u16);

Tuple Fields§

§0: u16

Implementations§

Source§

impl WidthInfo

Source

const DEFAULT: Self

No special handling necessary

Source

const LINE_FEED: Self

Source

const EMOJI_MODIFIER: Self

Source

const REGIONAL_INDICATOR: Self

Source

const SEVERAL_REGIONAL_INDICATOR: Self

Source

const EMOJI_PRESENTATION: Self

Source

const ZWJ_EMOJI_PRESENTATION: Self

Source

const VS16_ZWJ_EMOJI_PRESENTATION: Self

Source

const KEYCAP_ZWJ_EMOJI_PRESENTATION: Self

Source

const VS16_KEYCAP_ZWJ_EMOJI_PRESENTATION: Self

Source

const REGIONAL_INDICATOR_ZWJ_PRESENTATION: Self

Source

const EVEN_REGIONAL_INDICATOR_ZWJ_PRESENTATION: Self

Source

const ODD_REGIONAL_INDICATOR_ZWJ_PRESENTATION: Self

Source

const TAG_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_D1_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_D2_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_D3_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_A1_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_A2_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_A3_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_A4_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_A5_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const TAG_A6_END_ZWJ_EMOJI_PRESENTATION: Self

Source

const VARIATION_SELECTOR_15: Self

Source

const VARIATION_SELECTOR_16: Self

Source

const JOINING_GROUP_ALEF: Self

Source

const COMBINING_LONG_SOLIDUS_OVERLAY: Self

Source

const SOLIDUS_OVERLAY_ALEF: Self

Source

const HEBREW_LETTER_LAMED: Self

Source

const ZWJ_HEBREW_LETTER_LAMED: Self

Source

const BUGINESE_LETTER_YA: Self

Source

const ZWJ_BUGINESE_LETTER_YA: Self

Source

const BUGINESE_VOWEL_SIGN_I_ZWJ_LETTER_YA: Self

Source

const TIFINAGH_CONSONANT: Self

Source

const ZWJ_TIFINAGH_CONSONANT: Self

Source

const TIFINAGH_JOINER_CONSONANT: Self

Source

const LISU_TONE_LETTER_MYA_NA_JEU: Self

Source

const OLD_TURKIC_LETTER_ORKHON_I: Self

Source

const ZWJ_OLD_TURKIC_LETTER_ORKHON_I: Self

Source

const KHMER_COENG_ELIGIBLE_LETTER: Self

Source

fn is_ligature_transparent(self) -> bool

Whether this width mode is ligature_transparent (has 5th MSB set.)

Source

fn set_zwj_bit(self) -> Self

Sets 6th MSB.

Source

fn is_emoji_presentation(self) -> bool

Has top bit set

Source

fn is_zwj_emoji_presentation(self) -> bool

Has top bit set

Source

fn set_emoji_presentation(self) -> Self

Set top bit

Source

fn unset_emoji_presentation(self) -> Self

Clear top bit

Source

fn is_text_presentation(self) -> bool

Has 2nd bit set

Source

fn set_text_presentation(self) -> Self

Set 2nd bit

Source

fn unset_text_presentation(self) -> Self

Clear 2nd bit

Trait Implementations§

Source§

impl Clone for WidthInfo

Source§

fn clone(&self) -> WidthInfo

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WidthInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for WidthInfo

Source§

fn eq(&self, other: &WidthInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for WidthInfo

Source§

impl Eq for WidthInfo

Source§

impl StructuralPartialEq for WidthInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Sealed for T
where T: ?Sized,