pub struct FlexParentData {
pub weight: f32,
pub fill: bool,
}Expand description
Parent data for flex layouts (Row/Column weights and alignment).
Fields§
§weight: f32Weight for distributing remaining space in the main axis. If > 0.0, this child participates in weighted distribution.
fill: boolWhether to fill the allocated space when using weight. If true, child gets tight constraints; if false, child gets loose constraints.
Implementations§
Trait Implementations§
Source§impl Clone for FlexParentData
impl Clone for FlexParentData
Source§fn clone(&self) -> FlexParentData
fn clone(&self) -> FlexParentData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlexParentData
impl Debug for FlexParentData
Source§impl Default for FlexParentData
impl Default for FlexParentData
Source§fn default() -> FlexParentData
fn default() -> FlexParentData
Returns the “default value” for a type. Read more
impl Copy for FlexParentData
Auto Trait Implementations§
impl Freeze for FlexParentData
impl RefUnwindSafe for FlexParentData
impl Send for FlexParentData
impl Sync for FlexParentData
impl Unpin for FlexParentData
impl UnwindSafe for FlexParentData
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