Enum cursive_flexbox::AlignContent
source · pub enum AlignContent {
FlexStart,
FlexEnd,
Center,
Stretch,
SpaceBetween,
SpaceAround,
}
Expand description
Alignment of the main axes in a flexbox.
Variants§
FlexStart
Align content to the start of the container.
FlexEnd
Align content to the end of the container.
Center
Align content to the center of the container.
Stretch
Stretch content along the secondary axis.
SpaceBetween
Align main axis with an equal amount of space between them.
SpaceAround
Align main axis with an equal of margin per axis.
Trait Implementations§
source§impl Clone for AlignContent
impl Clone for AlignContent
source§fn clone(&self) -> AlignContent
fn clone(&self) -> AlignContent
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 AlignContent
impl Debug for AlignContent
source§impl Default for AlignContent
impl Default for AlignContent
source§fn default() -> AlignContent
fn default() -> AlignContent
Returns the “default value” for a type. Read more
source§impl PartialEq<AlignContent> for AlignContent
impl PartialEq<AlignContent> for AlignContent
source§fn eq(&self, other: &AlignContent) -> bool
fn eq(&self, other: &AlignContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.