#[repr(transparent)]pub struct CanonicalCombiningClass(pub u8);Expand description
Property Canonical_Combining_Class.
See UAX #15:
https://www.unicode.org/reports/tr15/.
Note: See icu::normalizer::properties::CanonicalCombiningClassMap for the preferred API
to look up the Canonical_Combining_Class property by scalar value.
§Example
use icu::properties::{CodePointMapData, props::CanonicalCombiningClass};
assert_eq!(
CodePointMapData::<CanonicalCombiningClass>::new().get('a'),
CanonicalCombiningClass::NotReordered
); // U+0061: LATIN SMALL LETTER A
assert_eq!(
CodePointMapData::<CanonicalCombiningClass>::new().get('\u{0301}'),
CanonicalCombiningClass::Above
); // U+0301: COMBINING ACUTE ACCENTTuple Fields§
§0: u8Implementations§
Source§impl CanonicalCombiningClass
impl CanonicalCombiningClass
pub const NotReordered: Self
pub const NR: Self = Self::NotReordered
pub const Overlay: Self
pub const OV: Self = Self::Overlay
pub const HanReading: Self
pub const HANR: Self = Self::HanReading
pub const Nukta: Self
pub const NK: Self = Self::Nukta
pub const KanaVoicing: Self
pub const KV: Self = Self::KanaVoicing
pub const Virama: Self
pub const VR: Self = Self::Virama
pub const CCC10: Self
pub const CCC11: Self
pub const CCC12: Self
pub const CCC13: Self
pub const CCC14: Self
pub const CCC15: Self
pub const CCC16: Self
pub const CCC17: Self
pub const CCC18: Self
pub const CCC19: Self
pub const CCC20: Self
pub const CCC21: Self
pub const CCC22: Self
pub const CCC23: Self
pub const CCC24: Self
pub const CCC25: Self
pub const CCC26: Self
pub const CCC27: Self
pub const CCC28: Self
pub const CCC29: Self
pub const CCC30: Self
pub const CCC31: Self
pub const CCC32: Self
pub const CCC33: Self
pub const CCC34: Self
pub const CCC35: Self
pub const CCC36: Self
pub const CCC84: Self
pub const CCC91: Self
pub const CCC103: Self
pub const CCC107: Self
pub const CCC118: Self
pub const CCC122: Self
pub const CCC129: Self
pub const CCC130: Self
pub const CCC132: Self
pub const CCC133: Self
pub const AttachedBelowLeft: Self
pub const ATBL: Self = Self::AttachedBelowLeft
pub const AttachedBelow: Self
pub const ATB: Self = Self::AttachedBelow
pub const AttachedAbove: Self
pub const ATA: Self = Self::AttachedAbove
pub const AttachedAboveRight: Self
pub const ATAR: Self = Self::AttachedAboveRight
pub const BelowLeft: Self
pub const BL: Self = Self::BelowLeft
pub const Below: Self
pub const B: Self = Self::Below
pub const BelowRight: Self
pub const BR: Self = Self::BelowRight
pub const Left: Self
pub const L: Self = Self::Left
pub const Right: Self
pub const R: Self = Self::Right
pub const AboveLeft: Self
pub const AL: Self = Self::AboveLeft
pub const Above: Self
pub const A: Self = Self::Above
pub const AboveRight: Self
pub const AR: Self = Self::AboveRight
pub const DoubleBelow: Self
pub const DB: Self = Self::DoubleBelow
pub const DoubleAbove: Self
pub const DA: Self = Self::DoubleAbove
pub const IotaSubscript: Self
pub const IS: Self = Self::IotaSubscript
Source§impl CanonicalCombiningClass
impl CanonicalCombiningClass
Sourcepub const ALL_VALUES: &'static [Self]
👎Deprecated
pub const ALL_VALUES: &'static [Self]
Deprecated
Source§impl CanonicalCombiningClass
impl CanonicalCombiningClass
Sourcepub const fn to_icu4c_value(self) -> u8
👎Deprecated since 2.3.0: please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
pub const fn to_icu4c_value(self) -> u8
please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
Returns an ICU4C UCanonicalCombiningClass value.
Sourcepub const fn from_icu4c_value(value: u8) -> Self
👎Deprecated since 2.3.0: please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
pub const fn from_icu4c_value(value: u8) -> Self
please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
Constructor from an ICU4C UCanonicalCombiningClass value.
Trait Implementations§
Source§impl AsULE for CanonicalCombiningClass
impl AsULE for CanonicalCombiningClass
Source§impl Clone for CanonicalCombiningClass
impl Clone for CanonicalCombiningClass
Source§fn clone(&self) -> CanonicalCombiningClass
fn clone(&self) -> CanonicalCombiningClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CanonicalCombiningClass
Source§impl Debug for CanonicalCombiningClass
impl Debug for CanonicalCombiningClass
Source§impl Default for CanonicalCombiningClass
impl Default for CanonicalCombiningClass
impl Eq for CanonicalCombiningClass
Source§impl From<CanonicalCombiningClass> for u16
impl From<CanonicalCombiningClass> for u16
Source§fn from(other: CanonicalCombiningClass) -> Self
fn from(other: CanonicalCombiningClass) -> Self
Converts to this type from the input type.
Source§impl Hash for CanonicalCombiningClass
impl Hash for CanonicalCombiningClass
Source§impl Ord for CanonicalCombiningClass
impl Ord for CanonicalCombiningClass
Source§fn cmp(&self, other: &CanonicalCombiningClass) -> Ordering
fn cmp(&self, other: &CanonicalCombiningClass) -> Ordering
1.21.0 (const: unstable) · 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
impl ParseableEnumeratedProperty for CanonicalCombiningClass
Source§impl PartialEq for CanonicalCombiningClass
impl PartialEq for CanonicalCombiningClass
Source§impl PartialOrd for CanonicalCombiningClass
impl PartialOrd for CanonicalCombiningClass
impl StructuralPartialEq for CanonicalCombiningClass
Source§impl TrieValue for CanonicalCombiningClass
impl TrieValue for CanonicalCombiningClass
Source§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
Source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
A parsing function that is primarily motivated by deserialization contexts.
When the serialization type width is smaller than 32 bits, then it is expected
that the call site will widen the value to a
u32 first.Auto Trait Implementations§
impl Freeze for CanonicalCombiningClass
impl RefUnwindSafe for CanonicalCombiningClass
impl Send for CanonicalCombiningClass
impl Sync for CanonicalCombiningClass
impl Unpin for CanonicalCombiningClass
impl UnsafeUnpin for CanonicalCombiningClass
impl UnwindSafe for CanonicalCombiningClass
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