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 for UnicodeVersion
impl PartialEq for UnicodeVersion
Source§impl PartialOrd for UnicodeVersion
impl PartialOrd for UnicodeVersion
impl Copy for UnicodeVersion
impl Eq for UnicodeVersion
impl StructuralPartialEq for UnicodeVersion
Auto Trait Implementations§
impl Freeze for UnicodeVersion
impl RefUnwindSafe for UnicodeVersion
impl Send for UnicodeVersion
impl Sync for UnicodeVersion
impl Unpin for UnicodeVersion
impl UnwindSafe for UnicodeVersion
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)