pub struct FlexItem {
pub basis: f64,
pub grow: f64,
}Expand description
One participant in a main-axis flex layout.
Fields§
§basis: f64The item’s natural size along the main axis, in logical pixels.
grow: f64Share of leftover free space this item absorbs. 0.0 = fixed size.
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