pub struct FlexItem {
pub basis: Size,
pub grow: f32,
}Expand description
A flex item: its base (preferred) size plus grow factor.
Fields§
§basis: SizePreferred size before any growth/shrink is applied.
grow: f32Proportional share of leftover main-axis space (flex-grow).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlexItem
impl RefUnwindSafe for FlexItem
impl Send for FlexItem
impl Sync for FlexItem
impl Unpin for FlexItem
impl UnsafeUnpin for FlexItem
impl UnwindSafe for FlexItem
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