#[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: u8
Implementations§
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 more