Enum lay_rs::prelude::taffy::style::AlignContent
pub enum AlignContent {
Start,
End,
FlexStart,
FlexEnd,
Center,
Stretch,
SpaceBetween,
SpaceEvenly,
SpaceAround,
}
Expand description
Sets the distribution of space between and around content items 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 centered around the middle of the axis
Stretch
Items are stretched to fill the container
SpaceBetween
The first and last items are aligned flush with the edges of the container (no gap) The gap between items is distributed evenly.
SpaceEvenly
The gap between the first and last items is exactly THE SAME as the gap between items. The gaps are distributed evenly
SpaceAround
The gap between the first and last items is exactly HALF the gap between items. The gaps are distributed evenly in proportion to these ratios.
Trait Implementations§
§impl Clone for AlignContent
impl Clone for AlignContent
§fn clone(&self) -> AlignContent
fn clone(&self) -> AlignContent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for AlignContent
impl Debug for AlignContent
§impl<'de> Deserialize<'de> for AlignContent
impl<'de> Deserialize<'de> for AlignContent
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AlignContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AlignContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for AlignContent
impl PartialEq for AlignContent
§impl Serialize for AlignContent
impl Serialize for AlignContent
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for AlignContent
impl Eq for AlignContent
impl StructuralPartialEq for AlignContent
Auto Trait Implementations§
impl Freeze for AlignContent
impl RefUnwindSafe for AlignContent
impl Send for AlignContent
impl Sync for AlignContent
impl Unpin for AlignContent
impl UnwindSafe for AlignContent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more