pub enum LazyStackAxis {
Vertical {
spacing: Computed<f32>,
alignment: HorizontalAlignment,
},
Horizontal {
spacing: Computed<f32>,
alignment: VerticalAlignment,
},
}Expand description
The axis a LazyContainer can be
virtualized along, together with the spacing and cross-axis alignment the
stack was configured with.
Only the two stacks scroll in one direction with a well-defined item order,
which is what viewport virtualization needs; every other layout — a grid, a
ZStack, an absolute overlay — lays out its whole membership and returns
None here.
Variants§
Vertical
Items run top to bottom, aligned horizontally.
Fields
§
alignment: HorizontalAlignmentHow items line up across the axis.
Horizontal
Items run leading to trailing, aligned vertically.
Fields
§
alignment: VerticalAlignmentHow items line up across the axis.
Trait Implementations§
Source§impl Clone for LazyStackAxis
impl Clone for LazyStackAxis
Source§fn clone(&self) -> LazyStackAxis
fn clone(&self) -> LazyStackAxis
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for LazyStackAxis
impl !Send for LazyStackAxis
impl !Sync for LazyStackAxis
impl !UnwindSafe for LazyStackAxis
impl Freeze for LazyStackAxis
impl Unpin for LazyStackAxis
impl UnsafeUnpin for LazyStackAxis
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