enum GraphemeState {
Unknown,
NotBreak,
Break,
InCbConsonant,
Regional,
Emoji,
}
Expand description
maybe unify with PairResult? An enum describing information about a potential boundary.
Variants§
Unknown
No information is known.
NotBreak
It is known to not be a boundary.
Break
It is known to be a boundary.
InCbConsonant
The codepoint after it has Indic_Conjunct_Break=Consonant, so there is a break before so a boundary if it is preceded by another InCB=Consonant follwoed by a sequence consisting of one or more InCB=Linker and zero or more InCB = Extend (in any order).
Regional
The codepoint after is a Regional Indicator Symbol, so a boundary iff it is preceded by an even number of RIS codepoints. (GB12, GB13)
Emoji
The codepoint after is Extended_Pictographic, so whether it’s a boundary depends on pre-context according to GB11.
Trait Implementations§
source§impl Clone for GraphemeState
impl Clone for GraphemeState
source§fn clone(&self) -> GraphemeState
fn clone(&self) -> GraphemeState
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 GraphemeState
impl Debug for GraphemeState
source§impl PartialEq for GraphemeState
impl PartialEq for GraphemeState
impl Eq for GraphemeState
impl StructuralPartialEq for GraphemeState
Auto Trait Implementations§
impl Freeze for GraphemeState
impl RefUnwindSafe for GraphemeState
impl Send for GraphemeState
impl Sync for GraphemeState
impl Unpin for GraphemeState
impl UnwindSafe for GraphemeState
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
)