pub enum Alignment {
Start,
Center,
End,
Baseline,
}Expand description
Cross-axis alignment of measured child layout bounds.
Variants§
Start
Align upper edges in rows, or left edges in columns; the default.
Center
Center each child within the largest cross-axis extent.
End
Align lower edges in rows, or right edges in columns.
Baseline
Align real text baselines in rows, including measured text parts. Columns, rotated/upside-down nodes and baseline-less children are unsupported.
Trait Implementations§
impl Copy for Alignment
impl Eq for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Forget for Alignment
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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