pub struct Age(/* private fields */);
Expand description
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.)
Implementations§
Trait Implementations§
Source§impl CharProperty for Age
impl CharProperty for Age
Source§fn prop_abbr_name() -> &'static str
fn prop_abbr_name() -> &'static str
Source§fn prop_long_name() -> &'static str
fn prop_long_name() -> &'static str
Source§fn prop_human_name() -> &'static str
fn prop_human_name() -> &'static str
Source§impl CustomCharProperty<UnicodeVersion> for Age
impl CustomCharProperty<UnicodeVersion> for Age
Source§fn actual(&self) -> UnicodeVersion
fn actual(&self) -> UnicodeVersion
Get numeric value for character property value
Source§impl Ord for Age
impl Ord for Age
Source§impl PartialCharProperty for Age
impl PartialCharProperty for Age
Source§impl PartialOrd for Age
impl PartialOrd for Age
impl Copy for Age
impl Eq for Age
impl StructuralPartialEq for Age
Auto Trait Implementations§
impl Freeze for Age
impl RefUnwindSafe for Age
impl Send for Age
impl Sync for Age
impl Unpin for Age
impl UnwindSafe for Age
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)