Struct unic_emoji_char::UnicodeVersion
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§
§impl Clone for UnicodeVersion
impl Clone for UnicodeVersion
§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 more§impl Debug for UnicodeVersion
impl Debug for UnicodeVersion
§impl Default for UnicodeVersion
impl Default for UnicodeVersion
§fn default() -> UnicodeVersion
fn default() -> UnicodeVersion
Returns the “default value” for a type. Read more
§impl Display for UnicodeVersion
impl Display for UnicodeVersion
§impl Hash for UnicodeVersion
impl Hash for UnicodeVersion
§impl Ord for UnicodeVersion
impl Ord for UnicodeVersion
§impl PartialEq<UnicodeVersion> for UnicodeVersion
impl PartialEq<UnicodeVersion> for UnicodeVersion
§fn eq(&self, other: &UnicodeVersion) -> bool
fn eq(&self, other: &UnicodeVersion) -> bool
§impl PartialOrd<UnicodeVersion> for UnicodeVersion
impl PartialOrd<UnicodeVersion> for UnicodeVersion
§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