Expand description
Different ways in which a LayoutSize
can get a height.
See Width
for more documentation, since it’s analogous.
Variants
Fill
See Width::Fill
.
Fix(f32)
See Width::Fix
.
Compute
See Width::Compute
.
FillUntil(f32)
See Width::FillUntil
,
Implementations
TODO(JP): Height::Fill
might be a bad default, because if you use
Direction::Down
it will push out everything out it below.
HTML/CSS uses something more like Height::Compute
by default for height,
and only Height::Fill
for width (for block-layout elements).
TODO(JP): Replace these with Height::default() when https://github.com/rust-lang/rust/issues/67792 gets done
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Height
impl UnwindSafe for Height
Blanket Implementations
Mutably borrows from an owned value. Read more