pub enum MainAxisSize {
Max,
Min,
}Variants§
Max
All of it. A row fills the width it is offered, a column the height — which is
what makes SpaceBetween, SpaceAround and End mean anything at all, and it
is the default here as it is in the reference.
Min
Only as much as the children need: the line shrink-wraps. This is what a row inside a button or a chip wants, where the box is measured from its contents.
Trait Implementations§
Source§impl Clone for MainAxisSize
impl Clone for MainAxisSize
impl Copy for MainAxisSize
Source§impl Debug for MainAxisSize
impl Debug for MainAxisSize
Source§impl Default for MainAxisSize
impl Default for MainAxisSize
impl Eq for MainAxisSize
Source§impl PartialEq for MainAxisSize
impl PartialEq for MainAxisSize
impl StructuralPartialEq for MainAxisSize
Auto Trait Implementations§
impl Freeze for MainAxisSize
impl RefUnwindSafe for MainAxisSize
impl Send for MainAxisSize
impl Sync for MainAxisSize
impl Unpin for MainAxisSize
impl UnsafeUnpin for MainAxisSize
impl UnwindSafe for MainAxisSize
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