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 T)

🔬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,