Struct unic_ucd_age::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]

[src]

Find the character Age property value.

[src]

Return the UnicodeVersion value of the age.

Trait Implementations

impl Clone for Age
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Age
[src]

impl Eq for Age
[src]

impl PartialEq for Age
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Ord for Age
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Debug for Age
[src]

[src]

Formats the value using the given formatter.

impl Hash for Age
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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

impl CharProperty for Age
[src]

[src]

The abbreviated name of the property.

[src]

The long name of the property.

[src]

The human-readable name of the property.

impl PartialCharProperty for Age
[src]

[src]

The property value for the character, or None.

impl CustomCharProperty<UnicodeVersion> for Age
[src]

[src]

Get numeric value for character property value

impl PartialOrd for Age
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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