[−][src]Struct unic_ucd::Age
Represents values of the Unicode character property Age.
The Age property indicates the age of a character, which is defined based on the first Unicode version in which a particular Unicode character was assigned (as character or noncharacter).
Note: Age
type has a reverse ordering compared to UnicodeVersion
, because a character is
older (has greater age) of another character if, and only if, it has a older (smaller)
UnicodeVersion
number.
Unicode versions with character assignement always have the Micro (Update) version value
of zero (0
). Therefore, all UnicodeVersion
values return from Age
will have their macro
field as 0
.
The earliest (largest) value for this property is UnicodeVersion { major: 1, minor: 1, micro: 0 }
, because of the massive changes for the merger of the Unicode Standard with ISO 10646.
The latest (smallest) value for this property is always equal to or greater than
UNICODE_VERSION
. (Only not equal when UNICODE_VERSION
has non-zero micro value.)
Methods
impl Age
[src]
pub fn of(ch: char) -> Option<Age>
[src]
Find the character Age property value.
pub fn actual(&self) -> UnicodeVersion
[src]
Return the UnicodeVersion
value of the age.
Trait Implementations
impl PartialEq<Age> for Age
[src]
impl Debug for Age
[src]
impl Eq for Age
[src]
impl Hash for Age
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
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 PartialOrd<Age> for Age
[src]
fn partial_cmp(&self, other: &Age) -> 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 CharProperty for Age
[src]
fn prop_abbr_name() -> &'static str
[src]
fn prop_long_name() -> &'static str
[src]
fn prop_human_name() -> &'static str
[src]
impl Copy for Age
[src]
impl Ord for Age
[src]
fn cmp(&self, other: &Age) -> 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 CustomCharProperty<UnicodeVersion> for Age
[src]
fn actual(&self) -> UnicodeVersion
[src]
Get numeric value for character property value
impl PartialCharProperty for Age
[src]
impl Clone for Age
[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,
impl<T> PartialCharProperty for T where
T: TotalCharProperty,
[src]
T: TotalCharProperty,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,