pub struct FlexItem {
pub base: f32,
pub grow: f32,
pub shrink: f32,
pub min: f32,
pub max: f32,
}Expand description
Flex parameters for one item along a container’s main axis.
Fields§
§base: f32Base size before growing or shrinking.
grow: f32Relative weight used to claim free space.
shrink: f32Relative weight used to absorb a deficit.
min: f32Minimum size the item may shrink to.
max: f32Maximum size the item may grow to.
Implementations§
Trait Implementations§
impl Copy for FlexItem
impl StructuralPartialEq for FlexItem
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