pub enum LayoutJustifyContent {
Start,
End,
Center,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}
Expand description
Represents a justify-content
attribute
Variants§
Start
Default value. Items are positioned at the beginning of the container
End
Items are positioned at the end of the container
Center
Items are positioned at the center of the container
SpaceBetween
Items are positioned with space between the lines
SpaceAround
Items are positioned with space before, between, and after the lines
SpaceEvenly
Items are distributed so that the spacing between any two adjacent alignment subjects, before the first alignment subject, and after the last alignment subject is the same
Trait Implementations§
Source§impl Clone for LayoutJustifyContent
impl Clone for LayoutJustifyContent
Source§fn clone(&self) -> LayoutJustifyContent
fn clone(&self) -> LayoutJustifyContent
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 LayoutJustifyContent
impl Debug for LayoutJustifyContent
Source§impl Default for LayoutJustifyContent
impl Default for LayoutJustifyContent
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
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)