#[non_exhaustive]pub struct UnicodeVersions {
pub width: UnicodeVersion,
pub segmentation: UnicodeVersion,
}Expand description
The Unicode versions of the two data sets that decide a width.
A cluster’s boundaries come from unicode-segmentation and its width from
unicode-width. The two crates ship their own tables, so they can sit on
different Unicode versions. An emoji that one knows and the other does not
is counted wrongly. The versions change only in a new release of this crate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width: UnicodeVersionThe version of the width tables in unicode-width.
segmentation: UnicodeVersionThe version of the grapheme cluster tables in unicode-segmentation.
Trait Implementations§
Source§impl Clone for UnicodeVersions
impl Clone for UnicodeVersions
impl Copy for UnicodeVersions
Source§impl Debug for UnicodeVersions
impl Debug for UnicodeVersions
impl Eq for UnicodeVersions
Source§impl PartialEq for UnicodeVersions
impl PartialEq for UnicodeVersions
impl StructuralPartialEq for UnicodeVersions
Auto Trait Implementations§
impl Forget for UnicodeVersions
impl Freeze for UnicodeVersions
impl RefUnwindSafe for UnicodeVersions
impl Send for UnicodeVersions
impl Sync for UnicodeVersions
impl Unpin for UnicodeVersions
impl UnsafeUnpin for UnicodeVersions
impl UnwindSafe for UnicodeVersions
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