pub struct Layout<T> {
pub axis: Axis,
pub gap: T,
pub align: Align,
pub justify: Justify,
}Expand description
lays out children in a row or column
fixed, percent and fit children are sized first, then grow children share what is left when fit children overflow, the widest shrink first down to their minimum extent unbounded main axis grow uses natural content sizes
Fields§
§axis: Axis§gap: T§align: Align§justify: JustifyImplementations§
Trait Implementations§
impl<T: Copy> Copy for Layout<T>
Source§impl<C: Context<Scalar = T>, T: Scalar> Layout<C> for Layout<T>
impl<C: Context<Scalar = T>, T: Scalar> Layout<C> for Layout<T>
impl<T: PartialEq> StructuralPartialEq for Layout<T>
Auto Trait Implementations§
impl<T> Forget for Layout<T>
impl<T> Freeze for Layout<T>where
T: Freeze,
impl<T> Move for Layout<T>
impl<T> RefUnwindSafe for Layout<T>where
T: RefUnwindSafe,
impl<T> Send for Layout<T>where
T: Send,
impl<T> Sync for Layout<T>where
T: Sync,
impl<T> Unpin for Layout<T>where
T: Unpin,
impl<T> UnsafeUnpin for Layout<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Layout<T>where
T: UnwindSafe,
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