#[repr(transparent)]pub struct IndicSyllabicCategory(pub u8);Expand description
Property Indic_Syllabic_Category. See UAX #44: https://www.unicode.org/reports/tr44/#Indic_Syllabic_Category.
The numeric value is compatible with UIndicSyllabicCategory in ICU4C.
Tuple Fields§
§0: u8Implementations§
Source§impl IndicSyllabicCategory
impl IndicSyllabicCategory
pub const Other: IndicSyllabicCategory
pub const Avagraha: IndicSyllabicCategory
pub const Bindu: IndicSyllabicCategory
pub const BrahmiJoiningNumber: IndicSyllabicCategory
pub const CantillationMark: IndicSyllabicCategory
pub const Consonant: IndicSyllabicCategory
pub const ConsonantDead: IndicSyllabicCategory
pub const ConsonantFinal: IndicSyllabicCategory
pub const ConsonantHeadLetter: IndicSyllabicCategory
pub const ConsonantInitialPostfixed: IndicSyllabicCategory
pub const ConsonantKiller: IndicSyllabicCategory
pub const ConsonantMedial: IndicSyllabicCategory
pub const ConsonantPlaceholder: IndicSyllabicCategory
pub const ConsonantPrecedingRepha: IndicSyllabicCategory
pub const ConsonantPrefixed: IndicSyllabicCategory
pub const ConsonantSucceedingRepha: IndicSyllabicCategory
pub const ConsonantSubjoined: IndicSyllabicCategory
pub const ConsonantWithStacker: IndicSyllabicCategory
pub const GeminationMark: IndicSyllabicCategory
pub const InvisibleStacker: IndicSyllabicCategory
pub const Joiner: IndicSyllabicCategory
pub const ModifyingLetter: IndicSyllabicCategory
pub const NonJoiner: IndicSyllabicCategory
pub const Nukta: IndicSyllabicCategory
pub const Number: IndicSyllabicCategory
pub const NumberJoiner: IndicSyllabicCategory
pub const PureKiller: IndicSyllabicCategory
pub const RegisterShifter: IndicSyllabicCategory
pub const SyllableModifier: IndicSyllabicCategory
pub const ToneLetter: IndicSyllabicCategory
pub const ToneMark: IndicSyllabicCategory
pub const Virama: IndicSyllabicCategory
pub const Visarga: IndicSyllabicCategory
pub const Vowel: IndicSyllabicCategory
pub const VowelDependent: IndicSyllabicCategory
pub const VowelIndependent: IndicSyllabicCategory
Source§impl IndicSyllabicCategory
impl IndicSyllabicCategory
Sourcepub const fn name_to_enum_mapper() -> PropertyValueNameToEnumMapperBorrowed<'static, IndicSyllabicCategory>
pub const fn name_to_enum_mapper() -> PropertyValueNameToEnumMapperBorrowed<'static, IndicSyllabicCategory>
Return a PropertyValueNameToEnumMapper, capable of looking up values
from strings for the Indic_Syllabic_Category enumerated property.
✨ Enabled with the compiled_data Cargo feature.
§Example
use icu::properties::IndicSyllabicCategory;
let lookup = IndicSyllabicCategory::name_to_enum_mapper();
// long/short name for value
assert_eq!(lookup.get_strict("Brahmi_Joining_Number"), Some(IndicSyllabicCategory::BrahmiJoiningNumber));
assert_eq!(lookup.get_strict("Vowel_Independent"), Some(IndicSyllabicCategory::VowelIndependent));
// name has incorrect casing and hyphens
assert_eq!(lookup.get_strict("brahmi-joining-number"), None);
// loose matching of name
assert_eq!(lookup.get_loose("brahmi-joining-number"), Some(IndicSyllabicCategory::BrahmiJoiningNumber));
// fake property
assert_eq!(lookup.get_strict("Tone_Number"), None);Sourcepub fn get_name_to_enum_mapper(
provider: &(impl DataProvider<IndicSyllabicCategoryNameToValueV1Marker> + ?Sized),
) -> Result<PropertyValueNameToEnumMapper<IndicSyllabicCategory>, PropertiesError>
pub fn get_name_to_enum_mapper( provider: &(impl DataProvider<IndicSyllabicCategoryNameToValueV1Marker> + ?Sized), ) -> Result<PropertyValueNameToEnumMapper<IndicSyllabicCategory>, PropertiesError>
A version of IndicSyllabicCategory::name_to_enum_mapper() that uses custom data provided by a DataProvider.
Sourcepub const fn enum_to_short_name_mapper() -> PropertyEnumToValueNameLinearMapperBorrowed<'static, IndicSyllabicCategory>
pub const fn enum_to_short_name_mapper() -> PropertyEnumToValueNameLinearMapperBorrowed<'static, IndicSyllabicCategory>
Return a PropertyEnumToValueNameLinearMapper, capable of looking up short names
for values of the Indic_Syllabic_Category enumerated property.
✨ Enabled with the compiled_data Cargo feature.
§Example
use icu::properties::IndicSyllabicCategory;
let lookup = IndicSyllabicCategory::enum_to_short_name_mapper();
assert_eq!(lookup.get(IndicSyllabicCategory::BrahmiJoiningNumber), Some("Brahmi_Joining_Number"));
assert_eq!(lookup.get(IndicSyllabicCategory::VowelIndependent), Some("Vowel_Independent"));Sourcepub fn get_enum_to_short_name_mapper(
provider: &(impl DataProvider<IndicSyllabicCategoryValueToShortNameV1Marker> + ?Sized),
) -> Result<PropertyEnumToValueNameLinearMapper<IndicSyllabicCategory>, PropertiesError>
pub fn get_enum_to_short_name_mapper( provider: &(impl DataProvider<IndicSyllabicCategoryValueToShortNameV1Marker> + ?Sized), ) -> Result<PropertyEnumToValueNameLinearMapper<IndicSyllabicCategory>, PropertiesError>
A version of IndicSyllabicCategory::enum_to_short_name_mapper() that uses custom data provided by a DataProvider.
Sourcepub const fn enum_to_long_name_mapper() -> PropertyEnumToValueNameLinearMapperBorrowed<'static, IndicSyllabicCategory>
pub const fn enum_to_long_name_mapper() -> PropertyEnumToValueNameLinearMapperBorrowed<'static, IndicSyllabicCategory>
Return a PropertyEnumToValueNameLinearMapper, capable of looking up long names
for values of the Indic_Syllabic_Category enumerated property.
✨ Enabled with the compiled_data Cargo feature.
§Example
use icu::properties::IndicSyllabicCategory;
let lookup = IndicSyllabicCategory::enum_to_long_name_mapper();
assert_eq!(lookup.get(IndicSyllabicCategory::BrahmiJoiningNumber), Some("Brahmi_Joining_Number"));
assert_eq!(lookup.get(IndicSyllabicCategory::VowelIndependent), Some("Vowel_Independent"));Sourcepub fn get_enum_to_long_name_mapper(
provider: &(impl DataProvider<IndicSyllabicCategoryValueToLongNameV1Marker> + ?Sized),
) -> Result<PropertyEnumToValueNameLinearMapper<IndicSyllabicCategory>, PropertiesError>
pub fn get_enum_to_long_name_mapper( provider: &(impl DataProvider<IndicSyllabicCategoryValueToLongNameV1Marker> + ?Sized), ) -> Result<PropertyEnumToValueNameLinearMapper<IndicSyllabicCategory>, PropertiesError>
A version of IndicSyllabicCategory::enum_to_long_name_mapper() that uses custom data provided by a DataProvider.
Trait Implementations§
Source§impl AsULE for IndicSyllabicCategory
impl AsULE for IndicSyllabicCategory
Source§impl Clone for IndicSyllabicCategory
impl Clone for IndicSyllabicCategory
Source§fn clone(&self) -> IndicSyllabicCategory
fn clone(&self) -> IndicSyllabicCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IndicSyllabicCategory
impl Debug for IndicSyllabicCategory
Source§impl Hash for IndicSyllabicCategory
impl Hash for IndicSyllabicCategory
Source§impl Ord for IndicSyllabicCategory
impl Ord for IndicSyllabicCategory
Source§fn cmp(&self, other: &IndicSyllabicCategory) -> Ordering
fn cmp(&self, other: &IndicSyllabicCategory) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for IndicSyllabicCategory
impl PartialEq for IndicSyllabicCategory
Source§impl PartialOrd for IndicSyllabicCategory
impl PartialOrd for IndicSyllabicCategory
Source§impl TrieValue for IndicSyllabicCategory
impl TrieValue for IndicSyllabicCategory
Source§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
u32 first.Source§impl<'a> ZeroMapKV<'a> for IndicSyllabicCategory
impl<'a> ZeroMapKV<'a> for IndicSyllabicCategory
Source§type Container = ZeroVec<'a, IndicSyllabicCategory>
type Container = ZeroVec<'a, IndicSyllabicCategory>
ZeroVec or VarZeroVec.type Slice = ZeroSlice<IndicSyllabicCategory>
Source§type OwnedType = IndicSyllabicCategory
type OwnedType = IndicSyllabicCategory
Container::replace() and Container::remove(),
also used during deserialization. If Self is human readable serialized,
deserializing to Self::OwnedType should produce the same value once
passed through Self::owned_as_self() Read moreimpl Copy for IndicSyllabicCategory
impl Eq for IndicSyllabicCategory
impl StructuralPartialEq for IndicSyllabicCategory
Auto Trait Implementations§
impl Freeze for IndicSyllabicCategory
impl RefUnwindSafe for IndicSyllabicCategory
impl Send for IndicSyllabicCategory
impl Sync for IndicSyllabicCategory
impl Unpin for IndicSyllabicCategory
impl UnwindSafe for IndicSyllabicCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte