pub struct FlexChild {
pub basis: f64,
pub flex: f64,
}Expand description
One child of a flex solve.
Fields§
§basis: f64Preferred size along the main axis, in logical pixels. 0.0 is
purely flex-driven.
flex: f64Grow weight. 0.0 stays at FlexChild::basis.
Trait Implementations§
impl Copy for FlexChild
impl StructuralPartialEq for FlexChild
Auto Trait Implementations§
impl Freeze for FlexChild
impl RefUnwindSafe for FlexChild
impl Send for FlexChild
impl Sync for FlexChild
impl Unpin for FlexChild
impl UnsafeUnpin for FlexChild
impl UnwindSafe for FlexChild
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