pub enum FlowDirection {
Horizontal,
Vertical,
}Expand description
Text flow direction for a rendering run.
Governs how the layout engine advances the cursor between glyphs and lines. Horizontal is the default (left-to-right or bidi-resolved RTL within lines). Vertical enables top-to-bottom CJK flow as per UAX #50.
Variants§
Horizontal
Standard horizontal text (LTR/RTL decided by bidi algorithm).
Vertical
Vertical text, advancing top-to-bottom (used for CJK vertical layout).
Trait Implementations§
Source§impl Clone for FlowDirection
impl Clone for FlowDirection
Source§fn clone(&self) -> FlowDirection
fn clone(&self) -> FlowDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FlowDirection
impl Debug for FlowDirection
Source§impl Default for FlowDirection
impl Default for FlowDirection
Source§fn default() -> FlowDirection
fn default() -> FlowDirection
Returns the “default value” for a type. Read more
Source§impl Hash for FlowDirection
impl Hash for FlowDirection
Source§impl PartialEq for FlowDirection
impl PartialEq for FlowDirection
Source§fn eq(&self, other: &FlowDirection) -> bool
fn eq(&self, other: &FlowDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FlowDirection
impl Eq for FlowDirection
impl StructuralPartialEq for FlowDirection
Auto Trait Implementations§
impl Freeze for FlowDirection
impl RefUnwindSafe for FlowDirection
impl Send for FlowDirection
impl Sync for FlowDirection
impl Unpin for FlowDirection
impl UnsafeUnpin for FlowDirection
impl UnwindSafe for FlowDirection
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