pub struct HangulSyllableType(/* private fields */);Expand description
Enumerated property Hangul_Syllable_Type
The Unicode standard provides both precomposed Hangul syllables and conjoining Jamo to compose arbitrary Hangul syllables. This property provides that ontology of Hangul code points.
For more information, see the Unicode Korean FAQ.
§Example
use icu::properties::{CodePointMapData, props::HangulSyllableType};
assert_eq!(
CodePointMapData::<HangulSyllableType>::new().get('ᄀ'),
HangulSyllableType::LeadingJamo
); // U+1100
assert_eq!(
CodePointMapData::<HangulSyllableType>::new().get('가'),
HangulSyllableType::LeadingVowelSyllable
); // U+AC00Implementations§
Source§impl HangulSyllableType
impl HangulSyllableType
pub const NotApplicable: Self
pub const NA: Self = Self::NotApplicable
pub const LeadingJamo: Self
pub const L: Self = Self::LeadingJamo
pub const VowelJamo: Self
pub const V: Self = Self::VowelJamo
pub const TrailingJamo: Self
pub const T: Self = Self::TrailingJamo
pub const LVSyllable: Self
pub const LV: Self = Self::LVSyllable
pub const LVTSyllable: Self
pub const LVT: Self = Self::LVTSyllable
Source§impl HangulSyllableType
impl HangulSyllableType
Sourcepub const ALL_VALUES: &'static [Self]
👎Deprecated
pub const ALL_VALUES: &'static [Self]
Deprecated
Source§impl HangulSyllableType
impl HangulSyllableType
Sourcepub const LeadingVowelSyllable: Self = Self::LVSyllable
👎Deprecated since 2.3.0: use HangulSyllableType::LVSyllable instead
pub const LeadingVowelSyllable: Self = Self::LVSyllable
use HangulSyllableType::LVSyllable instead
Deprecated: non-canonical spelling
Sourcepub const LeadingVowelTrailingSyllable: Self = Self::LVTSyllable
👎Deprecated since 2.3.0: use HangulSyllableType::LVTSyllable instead
pub const LeadingVowelTrailingSyllable: Self = Self::LVTSyllable
use HangulSyllableType::LVTSyllable instead
Deprecated: non-canonical spelling
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 UHangulSyllableType 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 UHangulSyllableType value.
Trait Implementations§
Source§impl AsULE for HangulSyllableType
impl AsULE for HangulSyllableType
Source§impl Clone for HangulSyllableType
impl Clone for HangulSyllableType
Source§fn clone(&self) -> HangulSyllableType
fn clone(&self) -> HangulSyllableType
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 HangulSyllableType
Source§impl Debug for HangulSyllableType
impl Debug for HangulSyllableType
Source§impl Default for HangulSyllableType
impl Default for HangulSyllableType
impl Eq for HangulSyllableType
Source§impl From<HangulSyllableType> for u16
impl From<HangulSyllableType> for u16
Source§fn from(other: HangulSyllableType) -> Self
fn from(other: HangulSyllableType) -> Self
Converts to this type from the input type.
Source§impl Hash for HangulSyllableType
impl Hash for HangulSyllableType
Source§impl NamedEnumeratedProperty for HangulSyllableType
impl NamedEnumeratedProperty for HangulSyllableType
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 HangulSyllableType
impl Ord for HangulSyllableType
Source§fn cmp(&self, other: &HangulSyllableType) -> Ordering
fn cmp(&self, other: &HangulSyllableType) -> 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 HangulSyllableType
Source§impl PartialEq for HangulSyllableType
impl PartialEq for HangulSyllableType
Source§impl PartialOrd for HangulSyllableType
impl PartialOrd for HangulSyllableType
impl StructuralPartialEq for HangulSyllableType
Source§impl TrieValue for HangulSyllableType
impl TrieValue for HangulSyllableType
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 HangulSyllableType
impl RefUnwindSafe for HangulSyllableType
impl Send for HangulSyllableType
impl Sync for HangulSyllableType
impl Unpin for HangulSyllableType
impl UnsafeUnpin for HangulSyllableType
impl UnwindSafe for HangulSyllableType
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