#[non_exhaustive]pub enum Align {
Start,
Center,
End,
Stretch,
Fit,
}Expand description
Cross-axis alignment of a stack’s children.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Start
Align to the leading edge of the cross axis.
Center
Center on the cross axis.
End
Align to the trailing edge of the cross axis.
Stretch
Fill the whole cross axis.
Fit
As align_self: keep its own size. It follows a parent that centers or
ends its children, and goes to the start of one that stretches them.
This is what a button wants, so it never grows to a column’s width.
Trait Implementations§
impl Copy for Align
impl Eq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnsafeUnpin for Align
impl UnwindSafe for Align
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