Enum taffy::style::AlignItems
source · pub enum AlignItems {
Start,
End,
FlexStart,
FlexEnd,
Center,
Baseline,
Stretch,
}
Expand description
Variants§
Start
Items are packed toward the start of the axis
End
Items are packed toward the end of the axis
FlexStart
Items are packed towards the flex-relative start of the axis.
For flex containers with flex_direction RowReverse or ColumnReverse this is equivalent to End. In all other cases it is equivalent to Start.
FlexEnd
Items are packed towards the flex-relative end of the axis.
For flex containers with flex_direction RowReverse or ColumnReverse this is equivalent to Start. In all other cases it is equivalent to End.
Center
Items are packed along the center of the cross axis
Baseline
Items are aligned such as their baselines align
Stretch
Stretch to fill the container
Trait Implementations§
source§impl Clone for AlignItems
impl Clone for AlignItems
source§fn clone(&self) -> AlignItems
fn clone(&self) -> AlignItems
Returns a copy 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 AlignItems
impl Debug for AlignItems
source§impl PartialEq for AlignItems
impl PartialEq for AlignItems
source§fn eq(&self, other: &AlignItems) -> bool
fn eq(&self, other: &AlignItems) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AlignItems
impl Eq for AlignItems
impl StructuralEq for AlignItems
impl StructuralPartialEq for AlignItems
Auto Trait Implementations§
impl RefUnwindSafe for AlignItems
impl Send for AlignItems
impl Sync for AlignItems
impl Unpin 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