Struct unic_ucd::Age
[−]
[src]
pub struct 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]
fn of(ch: char) -> Option<Age>
[src]
Find the character Age property value.
fn actual(&self) -> UnicodeVersion
[src]
Return the UnicodeVersion
value of the age.
fn human(&self) -> String
[src]
Human-readable description of the Age property value.
Trait Implementations
impl Ord for Age
[src]
impl Hash for Age
[src]
impl Copy for Age
[src]
impl Clone for Age
[src]
impl Eq for Age
[src]
impl PartialCharProperty for Age
[src]
impl PartialEq<Age> for Age
[src]
impl Debug for Age
[src]
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 CustomCharProperty<UnicodeVersion> for Age
[src]
fn actual(&self) -> UnicodeVersion
[src]
Get numeric value for character property value