pub enum LayoutDirection {
LeftToRight,
RightToLeft,
Auto,
}Expand description
Which way a run reads.
Variants§
LeftToRight
Left to right. The default.
RightToLeft
Right to left: the line’s glyphs are reversed after kerning.
Auto
Take the direction from the first strong character in the text, as UAX #9’s P2/P3 rules do. Neutral or empty text is left to right.
Trait Implementations§
Source§impl Clone for LayoutDirection
impl Clone for LayoutDirection
impl Copy for LayoutDirection
Source§impl Debug for LayoutDirection
impl Debug for LayoutDirection
Source§impl Default for LayoutDirection
impl Default for LayoutDirection
impl Eq for LayoutDirection
Source§impl PartialEq for LayoutDirection
impl PartialEq for LayoutDirection
impl StructuralPartialEq for LayoutDirection
Auto Trait Implementations§
impl Freeze for LayoutDirection
impl RefUnwindSafe for LayoutDirection
impl Send for LayoutDirection
impl Sync for LayoutDirection
impl Unpin for LayoutDirection
impl UnsafeUnpin for LayoutDirection
impl UnwindSafe for LayoutDirection
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