Skip to main content

CanonicalCombiningClass

Struct CanonicalCombiningClass 

Source
#[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 ACCENT

Tuple Fields§

§0: u8

Implementations§

Source§

impl CanonicalCombiningClass

Source

pub const NotReordered: Self

Source

pub const NR: Self = Self::NotReordered

Source

pub const Overlay: Self

Source

pub const OV: Self = Self::Overlay

Source

pub const HanReading: Self

Source

pub const HANR: Self = Self::HanReading

Source

pub const Nukta: Self

Source

pub const NK: Self = Self::Nukta

Source

pub const KanaVoicing: Self

Source

pub const KV: Self = Self::KanaVoicing

Source

pub const Virama: Self

Source

pub const VR: Self = Self::Virama

Source

pub const CCC10: Self

Source

pub const CCC11: Self

Source

pub const CCC12: Self

Source

pub const CCC13: Self

Source

pub const CCC14: Self

Source

pub const CCC15: Self

Source

pub const CCC16: Self

Source

pub const CCC17: Self

Source

pub const CCC18: Self

Source

pub const CCC19: Self

Source

pub const CCC20: Self

Source

pub const CCC21: Self

Source

pub const CCC22: Self

Source

pub const CCC23: Self

Source

pub const CCC24: Self

Source

pub const CCC25: Self

Source

pub const CCC26: Self

Source

pub const CCC27: Self

Source

pub const CCC28: Self

Source

pub const CCC29: Self

Source

pub const CCC30: Self

Source

pub const CCC31: Self

Source

pub const CCC32: Self

Source

pub const CCC33: Self

Source

pub const CCC34: Self

Source

pub const CCC35: Self

Source

pub const CCC36: Self

Source

pub const CCC84: Self

Source

pub const CCC91: Self

Source

pub const CCC103: Self

Source

pub const CCC107: Self

Source

pub const CCC118: Self

Source

pub const CCC122: Self

Source

pub const CCC129: Self

Source

pub const CCC130: Self

Source

pub const CCC132: Self

Source

pub const CCC133: Self

Source

pub const AttachedBelowLeft: Self

Source

pub const ATBL: Self = Self::AttachedBelowLeft

Source

pub const AttachedBelow: Self

Source

pub const ATB: Self = Self::AttachedBelow

Source

pub const AttachedAbove: Self

Source

pub const ATA: Self = Self::AttachedAbove

Source

pub const AttachedAboveRight: Self

Source

pub const ATAR: Self = Self::AttachedAboveRight

Source

pub const BelowLeft: Self

Source

pub const BL: Self = Self::BelowLeft

Source

pub const Below: Self

Source

pub const B: Self = Self::Below

Source

pub const BelowRight: Self

Source

pub const BR: Self = Self::BelowRight

Source

pub const Left: Self

Source

pub const L: Self = Self::Left

Source

pub const Right: Self

Source

pub const R: Self = Self::Right

Source

pub const AboveLeft: Self

Source

pub const AL: Self = Self::AboveLeft

Source

pub const Above: Self

Source

pub const A: Self = Self::Above

Source

pub const AboveRight: Self

Source

pub const AR: Self = Self::AboveRight

Source

pub const DoubleBelow: Self

Source

pub const DB: Self = Self::DoubleBelow

Source

pub const DoubleAbove: Self

Source

pub const DA: Self = Self::DoubleAbove

Source

pub const IotaSubscript: Self

Source

pub const IS: Self = Self::IotaSubscript

Source§

impl CanonicalCombiningClass

Source

pub const ALL_VALUES: &'static [Self]

👎Deprecated

Deprecated

Source§

impl CanonicalCombiningClass

Source

pub 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

Returns an ICU4C UCanonicalCombiningClass value.

Source

pub 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

Constructor from an ICU4C UCanonicalCombiningClass value.

Trait Implementations§

Source§

impl AsULE for CanonicalCombiningClass

Source§

type ULE = u8

The ULE type corresponding to Self. Read more
Source§

fn to_unaligned(self) -> Self::ULE

Converts from Self to Self::ULE. Read more
Source§

fn from_unaligned(unaligned: Self::ULE) -> Self

Converts from Self::ULE to Self. Read more
Source§

impl Clone for CanonicalCombiningClass

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for CanonicalCombiningClass

Source§

impl Debug for CanonicalCombiningClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CanonicalCombiningClass

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl EnumeratedProperty for CanonicalCombiningClass

Source§

const NAME: &'static [u8]

The name of this property
Source§

const SHORT_NAME: &'static [u8]

The abbreviated name of this property, if it exists, otherwise the name
Source§

fn for_char(ch: char) -> Self

Convenience method for CodePointMapData::new().get(ch) Read more
Source§

impl Eq for CanonicalCombiningClass

Source§

impl From<CanonicalCombiningClass> for u16

Source§

fn from(other: CanonicalCombiningClass) -> Self

Converts to this type from the input type.
Source§

impl Hash for CanonicalCombiningClass

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for CanonicalCombiningClass

Source§

fn cmp(&self, other: &CanonicalCombiningClass) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl ParseableEnumeratedProperty for CanonicalCombiningClass

Source§

impl PartialEq for CanonicalCombiningClass

Source§

fn eq(&self, other: &CanonicalCombiningClass) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for CanonicalCombiningClass

Source§

fn partial_cmp(&self, other: &CanonicalCombiningClass) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for CanonicalCombiningClass

Source§

impl TrieValue for CanonicalCombiningClass

Source§

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>

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.
Source§

fn to_u32(self) -> u32

A method for converting back to a u32 that can roundtrip through Self::try_from_u32(). The default implementation of this trait method panics in debug mode and returns 0 in release mode. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.