Struct unic_ucd_version::UnicodeVersion
source · [−]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
sourceimpl Clone for UnicodeVersion
impl Clone for UnicodeVersion
sourcefn clone(&self) -> UnicodeVersion
fn clone(&self) -> UnicodeVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnicodeVersion
impl Debug for UnicodeVersion
sourceimpl Default for UnicodeVersion
impl Default for UnicodeVersion
sourcefn default() -> UnicodeVersion
fn default() -> UnicodeVersion
Returns the “default value” for a type. Read more
sourceimpl Display for UnicodeVersion
impl Display for UnicodeVersion
sourceimpl Hash for UnicodeVersion
impl Hash for UnicodeVersion
sourceimpl Ord for UnicodeVersion
impl Ord for UnicodeVersion
sourceimpl PartialEq<UnicodeVersion> for UnicodeVersion
impl PartialEq<UnicodeVersion> for UnicodeVersion
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &UnicodeVersion) -> bool
fn ne(&self, other: &UnicodeVersion) -> bool
This method tests for !=
.
sourceimpl PartialOrd<UnicodeVersion> for UnicodeVersion
impl PartialOrd<UnicodeVersion> for UnicodeVersion
sourcefn partial_cmp(&self, other: &UnicodeVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &UnicodeVersion) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for UnicodeVersion
impl Eq for UnicodeVersion
impl StructuralEq for UnicodeVersion
impl StructuralPartialEq for UnicodeVersion
Auto Trait Implementations
impl RefUnwindSafe for UnicodeVersion
impl Send for UnicodeVersion
impl Sync for UnicodeVersion
impl Unpin for UnicodeVersion
impl UnwindSafe for UnicodeVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more