pub enum DecompositionType {
Show 17 variants
Canonical,
Compat,
Circle,
Final,
Font,
Fraction,
Initial,
Isolated,
Medial,
Narrow,
NoBreak,
Small,
Square,
Sub,
Super,
Vertical,
Wide,
}
Expand description
Represents the Unicode character
Decomposition_Type
property.
Variants§
Canonical
Compat
Otherwise unspecified compatibility character
Circle
Encircled form
Final
Final presentation form (Arabic)
Font
Font variant (for example, a blackletter form)
Fraction
Vulgar fraction form
Initial
Initial presentation form (Arabic)
Isolated
Isolated presentation form (Arabic)
Medial
Medial presentation form (Arabic)
Narrow
Narrow (or hankaku) compatibility character
NoBreak
No-break version of a space or hyphen
Small
Small variant form (CNS compatibility)
Square
CJK squared font variant
Sub
Subscript form
Super
Superscript form
Vertical
Vertical layout presentation form
Wide
Wide (or zenkaku) compatibility character
Implementations§
Source§impl DecompositionType
impl DecompositionType
Sourcepub fn of(ch: char) -> Option<DecompositionType>
pub fn of(ch: char) -> Option<DecompositionType>
Find the DecompositionType of the character.
Trait Implementations§
Source§impl CharProperty for DecompositionType
impl CharProperty for DecompositionType
Source§fn prop_abbr_name() -> &'static str
fn prop_abbr_name() -> &'static str
The abbreviated name of the property.
Source§fn prop_long_name() -> &'static str
fn prop_long_name() -> &'static str
The long name of the property.
Source§fn prop_human_name() -> &'static str
fn prop_human_name() -> &'static str
The human-readable name of the property.
Source§impl Clone for DecompositionType
impl Clone for DecompositionType
Source§fn clone(&self) -> DecompositionType
fn clone(&self) -> DecompositionType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DecompositionType
impl Debug for DecompositionType
Source§impl Display for DecompositionType
impl Display for DecompositionType
Source§impl EnumeratedCharProperty for DecompositionType
impl EnumeratedCharProperty for DecompositionType
Source§fn all_values() -> &'static [DecompositionType]
fn all_values() -> &'static [DecompositionType]
Exhaustive list of all property values.
Source§fn human_name(&self) -> &'static str
fn human_name(&self) -> &'static str
The human-readable name of the property value.
Source§impl FromStr for DecompositionType
impl FromStr for DecompositionType
Source§impl Hash for DecompositionType
impl Hash for DecompositionType
Source§impl PartialEq for DecompositionType
impl PartialEq for DecompositionType
impl Copy for DecompositionType
impl Eq for DecompositionType
impl StructuralPartialEq for DecompositionType
Auto Trait Implementations§
impl Freeze for DecompositionType
impl RefUnwindSafe for DecompositionType
impl Send for DecompositionType
impl Sync for DecompositionType
impl Unpin for DecompositionType
impl UnwindSafe for DecompositionType
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)