pub struct CanonicalCombiningClassMap { /* private fields */ }
Expand description

Lookup of the Canonical_Combining_Class Unicode property.

Example

use icu_properties::CanonicalCombiningClass;
use icu_normalizer::properties::CanonicalCombiningClassMap;

let map = CanonicalCombiningClassMap::try_new_unstable(&icu_testdata::unstable()).unwrap();
assert_eq!(map.get('a'), CanonicalCombiningClass::NotReordered); // U+0061: LATIN SMALL LETTER A
assert_eq!(map.get32(0x0301), CanonicalCombiningClass::Above); // U+0301: COMBINING ACUTE ACCENT

Implementations

Look up the canonical combining class for a scalar value

Look up the canonical combining class for a scalar value represented as u32. If the argument is outside the scalar value range, CanonicalCombiningClass::NotReordered is returned.

Construct from data provider.

📚 Help choosing a constructor

⚠️ The bounds on this function may change over time, including in SemVer minor releases.

Creates a new instance using an AnyProvider.

For details on the behavior of this function, see: Self::try_new_unstable

📚 Help choosing a constructor

Enabled with the "serde" feature.

Creates a new instance using a BufferProvider.

For details on the behavior of this function, see: Self::try_new_unstable

📚 Help choosing a constructor

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.