#[non_exhaustive]pub enum TextScript {
Latin,
Arabic,
Hebrew,
Devanagari,
Thai,
Han,
Hangul,
Kana,
Common,
}Expand description
Script identity used to select shaping behavior and deterministic fallback.
This enum keeps growing as scripts are added, and every addition is a
breaking change for a downstream exhaustive match. #[non_exhaustive]
takes that break once, at the pre-1.0 moment it is cheapest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Latin
Arabic
Hebrew
Devanagari
Thai
Han
Hangul
Hangul jamo, compatibility jamo and precomposed syllables.
Kana
Hiragana, Katakana and the Katakana phonetic extensions.
Common
Trait Implementations§
Source§impl Clone for TextScript
impl Clone for TextScript
impl Copy for TextScript
Source§impl Debug for TextScript
impl Debug for TextScript
impl Eq for TextScript
Source§impl PartialEq for TextScript
impl PartialEq for TextScript
impl StructuralPartialEq for TextScript
Auto Trait Implementations§
impl Freeze for TextScript
impl RefUnwindSafe for TextScript
impl Send for TextScript
impl Sync for TextScript
impl Unpin for TextScript
impl UnsafeUnpin for TextScript
impl UnwindSafe for TextScript
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