Enum gpui2::AlignItems
pub enum AlignItems {
Start,
End,
FlexStart,
FlexEnd,
Center,
Baseline,
Stretch,
}
Expand description
Used to control how child nodes are aligned. For Flexbox it controls alignment in the cross axis For Grid it controls alignment in the block axis
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§
§impl Clone for AlignItems
impl Clone for AlignItems
§fn clone(&self) -> AlignItems
fn clone(&self) -> AlignItems
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for AlignItems
impl Debug for AlignItems
§impl PartialEq<AlignItems> for AlignItems
impl PartialEq<AlignItems> for AlignItems
§fn eq(&self, other: &AlignItems) -> bool
fn eq(&self, other: &AlignItems) -> bool
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.