Expand description
Different ways in which a LayoutSize
can get a width.
TODO(JP): See Height::DEFAULT
for a related TODO.
Variants
Fill
Fill up as much of the available space as possible.
Fix(f32)
Use a fixed width.
Compute
Will defer computation of [CxLayoutBox::width
] by setting it to f32::NAN
,
and only properly computing it later on.
TODO(JP): This can also be passed into Cx::add_box
but there it
makes no sense!
FillUntil(f32)
Fill up as much of the available space as possible up to provided width
Implementations
TODO(JP): Replace these with Width::default() when https://github.com/rust-lang/rust/issues/67792 gets done
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Width
impl UnwindSafe for Width
Blanket Implementations
Mutably borrows from an owned value. Read more