Struct unic_ucd_version::UnicodeVersion
source · pub struct UnicodeVersion {
pub major: u16,
pub minor: u16,
pub micro: u16,
}
Expand description
Represents a Unicode Version type.
UNIC’s Unicode Version type is used for Unicode datasets and specifications, including The Unicode Standard (TUS), Unicode Character Database (UCD), Common Local Data Repository (CLDR), IDNA, Emoji, etc.
TODO: Unicode Version is guaranteed to have three integer fields between 0 and 255. We are
going to switch over to u8
after Unicode 11.0.0 release.
Refs:
Fields§
§major: u16
Major version.
minor: u16
Minor version.
micro: u16
Micro (or Update) version.
Trait Implementations§
source§impl Clone for UnicodeVersion
impl Clone for UnicodeVersion
source§fn clone(&self) -> UnicodeVersion
fn clone(&self) -> UnicodeVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnicodeVersion
impl Debug for UnicodeVersion
source§impl Default for UnicodeVersion
impl Default for UnicodeVersion
source§fn default() -> UnicodeVersion
fn default() -> UnicodeVersion
Returns the “default value” for a type. Read more
source§impl Display for UnicodeVersion
impl Display for UnicodeVersion
source§impl Hash for UnicodeVersion
impl Hash for UnicodeVersion
source§impl Ord for UnicodeVersion
impl Ord for UnicodeVersion
source§fn cmp(&self, other: &UnicodeVersion) -> Ordering
fn cmp(&self, other: &UnicodeVersion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UnicodeVersion> for UnicodeVersion
impl PartialEq<UnicodeVersion> for UnicodeVersion
source§fn eq(&self, other: &UnicodeVersion) -> bool
fn eq(&self, other: &UnicodeVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UnicodeVersion> for UnicodeVersion
impl PartialOrd<UnicodeVersion> for UnicodeVersion
source§fn partial_cmp(&self, other: &UnicodeVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &UnicodeVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more