pub enum AlignItems {
Start,
Center,
End,
Stretch,
}Expand description
Cross-axis alignment for flex items.
Controls how items are aligned perpendicular to the flex direction.
Variants§
Start
Align to the start of the cross axis.
Center
Center items on the cross axis.
End
Align to the end of the cross axis.
Stretch
Stretch items to fill the cross axis (default).
Trait Implementations§
Source§impl Clone for AlignItems
impl Clone for AlignItems
Source§fn clone(&self) -> AlignItems
fn clone(&self) -> AlignItems
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AlignItems
Source§impl Debug for AlignItems
impl Debug for AlignItems
Source§impl Default for AlignItems
impl Default for AlignItems
Source§fn default() -> AlignItems
fn default() -> AlignItems
Returns the “default value” for a type. Read more
impl Eq for AlignItems
Source§impl PartialEq for AlignItems
impl PartialEq for AlignItems
impl StructuralPartialEq for AlignItems
Auto Trait Implementations§
impl Freeze for AlignItems
impl RefUnwindSafe for AlignItems
impl Send for AlignItems
impl Sync for AlignItems
impl Unpin for AlignItems
impl UnsafeUnpin for AlignItems
impl UnwindSafe for AlignItems
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