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