pub enum AlignSelf {
Auto,
Stretch,
FlexStart,
FlexEnd,
Center,
Baseline,
Start,
End,
}Expand description
The align-self keyword. Adds auto (defer to the container’s
align-items) to the AlignItems set.
Variants§
Auto
auto — inherit align-items from the parent. Default.
Stretch
stretch — stretch this item across the cross axis.
FlexStart
flex-start — pack at the start of the cross axis.
FlexEnd
flex-end — pack at the end of the cross axis.
Center
center — pack around the center of the cross axis.
Baseline
baseline — align baseline with sibling items.
Start
start — pack at the logical start.
End
end — pack at the logical end.
Trait Implementations§
impl Copy for AlignSelf
impl Eq for AlignSelf
impl StructuralPartialEq for AlignSelf
Auto Trait Implementations§
impl Freeze for AlignSelf
impl RefUnwindSafe for AlignSelf
impl Send for AlignSelf
impl Sync for AlignSelf
impl Unpin for AlignSelf
impl UnsafeUnpin for AlignSelf
impl UnwindSafe for AlignSelf
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