pub struct IndicSyllabicCategory(/* private fields */);Expand description
Property Indic_Syllabic_Category.
See UAX #44:
https://www.unicode.org/reports/tr44/#Indic_Syllabic_Category.
§Example
use icu::properties::{CodePointMapData, props::IndicSyllabicCategory};
assert_eq!(
CodePointMapData::<IndicSyllabicCategory>::new().get('a'),
IndicSyllabicCategory::Other
);
assert_eq!(
CodePointMapData::<IndicSyllabicCategory>::new().get('\u{0900}'),
IndicSyllabicCategory::Bindu
); // U+0900: DEVANAGARI SIGN INVERTED CANDRABINDUImplementations§
Source§impl IndicSyllabicCategory
impl IndicSyllabicCategory
pub const Other: Self
pub const Avagraha: Self
pub const Bindu: Self
pub const BrahmiJoiningNumber: Self
pub const CantillationMark: Self
pub const Consonant: Self
pub const ConsonantDead: Self
pub const ConsonantFinal: Self
pub const ConsonantHeadLetter: Self
pub const ConsonantInitialPostfixed: Self
pub const ConsonantKiller: Self
pub const ConsonantMedial: Self
pub const ConsonantPlaceholder: Self
pub const ConsonantPrecedingRepha: Self
pub const ConsonantPrefixed: Self
pub const ConsonantSubjoined: Self
pub const ConsonantSucceedingRepha: Self
pub const ConsonantWithStacker: Self
pub const GeminationMark: Self
pub const InvisibleStacker: Self
pub const Joiner: Self
pub const ModifyingLetter: Self
pub const NonJoiner: Self
pub const Nukta: Self
pub const Number: Self
pub const NumberJoiner: Self
pub const PureKiller: Self
pub const RegisterShifter: Self
pub const SyllableModifier: Self
pub const ToneLetter: Self
pub const ToneMark: Self
pub const Virama: Self
pub const Visarga: Self
pub const Vowel: Self
pub const VowelDependent: Self
pub const VowelIndependent: Self
pub const ReorderingKiller: Self
Source§impl IndicSyllabicCategory
impl IndicSyllabicCategory
Sourcepub const ALL_VALUES: &'static [Self]
👎Deprecated
pub const ALL_VALUES: &'static [Self]
Deprecated
Source§impl IndicSyllabicCategory
impl IndicSyllabicCategory
Sourcepub 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
pub const fn to_icu4c_value(self) -> u8
please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
Returns an ICU4C UIndicSyllabicCategory value.
Sourcepub 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
pub const fn from_icu4c_value(value: u8) -> Self
please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
Constructor from an ICU4C UIndicSyllabicCategory value.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndicSyllabicCategory
Source§impl Debug for IndicSyllabicCategory
impl Debug for IndicSyllabicCategory
Source§impl Default for IndicSyllabicCategory
impl Default for IndicSyllabicCategory
impl Eq for IndicSyllabicCategory
Source§impl From<IndicSyllabicCategory> for u16
impl From<IndicSyllabicCategory> for u16
Source§fn from(other: IndicSyllabicCategory) -> Self
fn from(other: IndicSyllabicCategory) -> Self
Converts to this type from the input type.
Source§impl Hash for IndicSyllabicCategory
impl Hash for IndicSyllabicCategory
Source§impl NamedEnumeratedProperty for IndicSyllabicCategory
impl NamedEnumeratedProperty for IndicSyllabicCategory
Source§fn try_from_str(s: &str) -> Option<Self>
fn try_from_str(s: &str) -> Option<Self>
Convenience method for
PropertyParser::new().get_loose(s) Read moreSource§fn long_name(&self) -> &'static str
fn long_name(&self) -> &'static str
Convenience method for
PropertyNamesLong::new().get(*self).unwrap() Read moreSource§fn short_name(&self) -> &'static str
fn short_name(&self) -> &'static str
Convenience method for
PropertyNamesShort::new().get(*self).unwrap() Read moreSource§impl Ord for IndicSyllabicCategory
impl Ord for IndicSyllabicCategory
Source§fn cmp(&self, other: &IndicSyllabicCategory) -> Ordering
fn cmp(&self, other: &IndicSyllabicCategory) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
impl ParseableEnumeratedProperty for IndicSyllabicCategory
Source§impl PartialEq for IndicSyllabicCategory
impl PartialEq for IndicSyllabicCategory
Source§impl PartialOrd for IndicSyllabicCategory
impl PartialOrd for IndicSyllabicCategory
impl StructuralPartialEq for IndicSyllabicCategory
Source§impl TrieValue for IndicSyllabicCategory
impl TrieValue for IndicSyllabicCategory
Source§type TryFromU32Error = TryFromIntError
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>
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.Auto Trait Implementations§
impl Freeze for IndicSyllabicCategory
impl RefUnwindSafe for IndicSyllabicCategory
impl Send for IndicSyllabicCategory
impl Sync for IndicSyllabicCategory
impl Unpin for IndicSyllabicCategory
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more