pub enum Alignment {
Start,
Center,
End,
SpaceAround,
SpaceBetween,
}Expand description
Alignment of items within the layout.
Variants§
Start
Align items to the start (left/top).
Center
Center items within available space.
End
Align items to the end (right/bottom).
SpaceAround
Distribute space evenly around each item.
SpaceBetween
Distribute space evenly between items (no outer space).
Trait Implementations§
impl Copy for Alignment
impl Eq for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
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