pub enum Direction {
Ltr,
Rtl,
}Expand description
The writing direction the layout resolves logical edges against.
Layout is authored in logical terms — start/end rather than left/right — and resolved to physical edges
when a style is handed to the engine. One build therefore serves both directions: flipping Direction
re-resolves the tree in place instead of rebuilding it, which is why the intent is kept alongside the
resolved style rather than baked into it.
Variants§
Implementations§
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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