[][src]Enum unic_ucd_name::Name

pub enum Name {
    NR1(char),
    NR2(&'static str, char),
    NR3(&'static [&'static str]),
}

Represents values of the Unicode character property Name.

Note: NR4 is omitted in this implementation because it can be represented by None.

See Section 4.8 in Unicode for a full specification of all name derivation rules.

Variants

NR1(char)

NR1: For Hangul syllables, the Name is derived by rule, as specified in Section 3.12 in Unicode by concatenating a fixed prefix string "HANGUL SYLLABLE" and appropriate values of the Jamo_Short_Name property.

NR2(&'static str, char)

NR2: For most ideographs, the Name is derived by concatenating a script-specific prefix string, as specified in Unicode, to the code point, expressed in hexadecimal, with the usual 4- to 6-digit convention.

NR3(&'static [&'static str])

NR3: For all other Graphic characters and for all Format characters, the Name is as explicitly listed in Field 1 of UnicodeData.txt.

Methods

impl Name[src]

pub fn of(ch: char) -> Option<Name>[src]

Find the character Name property value.

pub fn len(&self) -> usize[src]

Length of the name in bytes.

Trait Implementations

impl Display for Name[src]

impl Debug for Name[src]

impl PartialEq<Name> for Name[src]

impl Eq for Name[src]

impl Ord for Name[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd<Name> for Name[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for Name[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for Name[src]

impl Clone for Name[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Name

impl Sync for Name

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]