pub enum StackAxis {
Horizontal,
Vertical,
}Expand description
The main (distribution) axis of the linear stack currently negotiating a
child’s layout, if any. Set by HStack/VStack while they query children
so an orientation-agnostic flexible child (notably Spacer) can place its
minimum length on the main axis only and report 0 on the cross axis —
otherwise it imposes a spurious cross-axis floor on the stack. None when
the parent is not a linear stack (or in test contexts).
Variants§
Trait Implementations§
impl Copy for StackAxis
impl Eq for StackAxis
impl StructuralPartialEq for StackAxis
Auto Trait Implementations§
impl Freeze for StackAxis
impl RefUnwindSafe for StackAxis
impl Send for StackAxis
impl Sync for StackAxis
impl Unpin for StackAxis
impl UnsafeUnpin for StackAxis
impl UnwindSafe for StackAxis
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