pub struct FlowItem {
pub minimum: f32,
pub preferred: f32,
pub maximum: f32,
pub grow: f32,
}Expand description
Horizontal extent policy. All fields must be finite and nonnegative, with
minimum <= preferred <= maximum. Zero-width items are allowed and inert
unless they receive width; they still count as items and separate gaps.
Fields§
§minimum: f32Hard lower bound, typically readable label width plus padding.
preferred: f32Desired width before weighted growth, often the measured full label.
maximum: f32Hard upper bound, including growth.
grow: f32Relative weight for space beyond preferred. Zero opts out of growth.
Implementations§
Trait Implementations§
impl Copy for FlowItem
impl StructuralPartialEq for FlowItem
Auto Trait Implementations§
impl Freeze for FlowItem
impl RefUnwindSafe for FlowItem
impl Send for FlowItem
impl Sync for FlowItem
impl Unpin for FlowItem
impl UnwindSafe for FlowItem
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