pub enum BidiClass {
L,
R,
Al,
En,
An,
Nsm,
Et,
Other,
}Expand description
The Unicode bidirectional categories this module distinguishes.
The full list is 30-odd classes; the ones that change a reordering are
the strong ones (L, R, AL), the numbers (EN, AN), and the
neutrals that inherit from their neighbours. The rest collapse into
BidiClass::Other, which resolves exactly like a neutral.
Variants§
L
Left-to-right.
R
Right-to-left.
Al
Arabic letter.
En
European number.
An
Arabic number.
Nsm
A combining mark.
Et
European terminator: a currency symbol, a percent sign, a degree sign. It takes the direction of an adjacent number, and is neutral otherwise.
Other
Anything else: whitespace, punctuation, symbols, format characters.
Implementations§
Trait Implementations§
impl Copy for BidiClass
impl Eq for BidiClass
impl StructuralPartialEq for BidiClass
Auto Trait Implementations§
impl Freeze for BidiClass
impl RefUnwindSafe for BidiClass
impl Send for BidiClass
impl Sync for BidiClass
impl Unpin for BidiClass
impl UnsafeUnpin for BidiClass
impl UnwindSafe for BidiClass
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