[−][src]Enum unic_ucd_name::Name
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 cmp(&self, other: &Name) -> Ordering
[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]
fn partial_cmp(&self, other: &Name) -> Option<Ordering>
[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<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for Name
[src]
impl Clone for Name
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,