pub enum HeightPolicy {
OrderedContent,
FairContent,
FairFill,
}Expand description
Vertical sizing behavior applied by the renderer.
Variants§
OrderedContent
Allocate content height in widget order, subject to
WidgetLayout::max_height and the remaining terminal height.
FairContent
Take at most an equal share of the remaining height, then shrink to the content height without redistributing the unused share.
FairFill
Share the height left after ordered-content widgets fairly with other
fill widgets, subject to WidgetLayout::max_height.
Trait Implementations§
Source§impl Clone for HeightPolicy
impl Clone for HeightPolicy
Source§fn clone(&self) -> HeightPolicy
fn clone(&self) -> HeightPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeightPolicy
Source§impl Debug for HeightPolicy
impl Debug for HeightPolicy
Source§impl Default for HeightPolicy
impl Default for HeightPolicy
Source§fn default() -> HeightPolicy
fn default() -> HeightPolicy
Returns the “default value” for a type. Read more
impl Eq for HeightPolicy
Source§impl PartialEq for HeightPolicy
impl PartialEq for HeightPolicy
impl StructuralPartialEq for HeightPolicy
Auto Trait Implementations§
impl Freeze for HeightPolicy
impl RefUnwindSafe for HeightPolicy
impl Send for HeightPolicy
impl Sync for HeightPolicy
impl Unpin for HeightPolicy
impl UnsafeUnpin for HeightPolicy
impl UnwindSafe for HeightPolicy
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