#[repr(C)]pub enum LayoutJustifyContent {
FlexStart = 0,
FlexEnd = 1,
Start = 2,
End = 3,
Center = 4,
SpaceBetween = 5,
SpaceAround = 6,
SpaceEvenly = 7,
}Expand description
Represents a justify-content attribute, which defines the alignment
along the main axis.
Default: Start (flex-start)
Variants§
FlexStart = 0
FlexEnd = 1
Start = 2
End = 3
Center = 4
SpaceBetween = 5
SpaceAround = 6
SpaceEvenly = 7
Trait Implementations§
Source§impl Clone for LayoutJustifyContent
impl Clone for LayoutJustifyContent
Source§fn clone(&self) -> LayoutJustifyContent
fn clone(&self) -> LayoutJustifyContent
Returns a duplicate 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 LayoutJustifyContent
impl Debug for LayoutJustifyContent
Source§impl Default for LayoutJustifyContent
impl Default for LayoutJustifyContent
Source§impl FormatAsRustCode for LayoutJustifyContent
impl FormatAsRustCode for LayoutJustifyContent
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<LayoutJustifyContent> for CssProperty
impl From<LayoutJustifyContent> for CssProperty
Source§fn from(e: LayoutJustifyContent) -> Self
fn from(e: LayoutJustifyContent) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutJustifyContent
impl Hash for LayoutJustifyContent
Source§impl Ord for LayoutJustifyContent
impl Ord for LayoutJustifyContent
Source§fn cmp(&self, other: &LayoutJustifyContent) -> Ordering
fn cmp(&self, other: &LayoutJustifyContent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LayoutJustifyContent
impl PartialEq for LayoutJustifyContent
Source§impl PartialOrd for LayoutJustifyContent
impl PartialOrd for LayoutJustifyContent
Source§impl PrintAsCssValue for LayoutJustifyContent
impl PrintAsCssValue for LayoutJustifyContent
fn print_as_css_value(&self) -> String
impl Copy for LayoutJustifyContent
impl Eq for LayoutJustifyContent
impl StructuralPartialEq for LayoutJustifyContent
Auto Trait Implementations§
impl Freeze for LayoutJustifyContent
impl RefUnwindSafe for LayoutJustifyContent
impl Send for LayoutJustifyContent
impl Sync for LayoutJustifyContent
impl Unpin for LayoutJustifyContent
impl UnwindSafe for LayoutJustifyContent
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