Struct icu_properties::props::IndicSyllabicCategory
source · #[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§type ULE = IndicSyllabicCategoryULE
type ULE = IndicSyllabicCategoryULE
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(unaligned: Self::ULE) -> Self
fn from_unaligned(unaligned: Self::ULE) -> Self
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 GetType = IndicSyllabicCategoryULE
type GetType = IndicSyllabicCategoryULE
Container::get()
Read moresource§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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)