pub enum Width {
Fill,
Fix(f32),
Compute,
FillUntil(f32),
}
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§
Trait Implementations§
impl Copy for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
impl Freeze for Width
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnwindSafe for Width
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