pub enum FlexWrap {
NoWrap,
Wrap,
WrapReverse,
Balance,
BalanceReverse,
}Available on crate feature
flexbox only.Expand description
Controls whether flex items are forced onto one line or can wrap onto multiple lines.
Defaults to FlexWrap::NoWrap
Variants§
NoWrap
Items will not wrap and stay on a single line
Wrap
Items will wrap according to this item’s FlexDirection
WrapReverse
Items will wrap in the opposite direction to this item’s FlexDirection
Balance
Available on crate feature
flexbox_balance only.Items will wrap according to this item’s FlexDirection, and be balanced across
lines such that the largest line is as small as possible
BalanceReverse
Available on crate feature
flexbox_balance only.Items will wrap in the opposite direction to this item’s FlexDirection, and be
balanced across lines such that the largest line is as small as possible
Trait Implementations§
impl Copy for FlexWrap
Source§impl<'de> Deserialize<'de> for FlexWrap
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FlexWrap
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FlexWrap
impl StructuralPartialEq for FlexWrap
Auto Trait Implementations§
impl Freeze for FlexWrap
impl RefUnwindSafe for FlexWrap
impl Send for FlexWrap
impl Sync for FlexWrap
impl Unpin for FlexWrap
impl UnsafeUnpin for FlexWrap
impl UnwindSafe for FlexWrap
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