Enum masonry::widget::MainAxisAlignment
source · pub enum MainAxisAlignment {
Start,
Center,
End,
SpaceBetween,
SpaceEvenly,
SpaceAround,
}
Expand description
Arrangement of children on the main axis.
If there is surplus space on the main axis after laying out children, this enum represents how children are laid out in this space.
Variants§
Start
Top or leading.
Center
Children are centered, without padding.
End
Bottom or trailing.
SpaceBetween
Extra space is divided evenly between each child.
SpaceEvenly
Extra space is divided evenly between each child, as well as at the ends.
SpaceAround
Space between each child, with less at the start and end.
Trait Implementations§
source§impl Clone for MainAxisAlignment
impl Clone for MainAxisAlignment
source§fn clone(&self) -> MainAxisAlignment
fn clone(&self) -> MainAxisAlignment
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 MainAxisAlignment
impl Debug for MainAxisAlignment
source§impl PartialEq for MainAxisAlignment
impl PartialEq for MainAxisAlignment
source§fn eq(&self, other: &MainAxisAlignment) -> bool
fn eq(&self, other: &MainAxisAlignment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MainAxisAlignment
impl StructuralPartialEq for MainAxisAlignment
Auto Trait Implementations§
impl Freeze for MainAxisAlignment
impl RefUnwindSafe for MainAxisAlignment
impl Send for MainAxisAlignment
impl Sync for MainAxisAlignment
impl Unpin for MainAxisAlignment
impl UnwindSafe for MainAxisAlignment
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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