pub enum ItemAlignment {
None,
Fill,
Center,
Left,
Right,
Top,
Bottom,
}Variants§
None
No constraints are added, items can be aligned individually
Fill
Item width/height matched layout parent
Center
Items centered within layout parent width/height
Left
For a vertical layout, align items to the parent’s left bound. Do not use in a horizontal layout
Right
For a vertical layout, align items to the parent’s right bound. Do not use in a horizontal layout
Top
For a horizontal layout, align items to the parent’s top bound. Do not use in a vertical layout
Bottom
For a horizontal layout, align items to the parent’s bottom bound. Do not use in a vertical layout
Trait Implementations§
Source§impl Clone for ItemAlignment
impl Clone for ItemAlignment
Source§fn clone(&self) -> ItemAlignment
fn clone(&self) -> ItemAlignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ItemAlignment
impl Debug for ItemAlignment
impl Copy for ItemAlignment
Auto Trait Implementations§
impl Freeze for ItemAlignment
impl RefUnwindSafe for ItemAlignment
impl Send for ItemAlignment
impl Sync for ItemAlignment
impl Unpin for ItemAlignment
impl UnwindSafe for ItemAlignment
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