Enum cursive_core::view::SizeConstraint
source · Expand description
Single-dimensional constraint on a view size.
This describes a possible behaviour for a ResizedView.
Variants§
Free
No constraint imposed, the child view’s response is used.
Full
Tries to take all available space, no matter what the child needs.
Fixed(usize)
Always return the included size, no matter what the child needs.
AtMost(usize)
Returns the minimum of the included value and the child view’s size.
AtLeast(usize)
Returns the maximum of the included value and the child view’s size.
Implementations§
Trait Implementations§
source§impl Clone for SizeConstraint
impl Clone for SizeConstraint
source§fn clone(&self) -> SizeConstraint
fn clone(&self) -> SizeConstraint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SizeConstraint
impl Debug for SizeConstraint
source§impl Hash for SizeConstraint
impl Hash for SizeConstraint
source§impl PartialEq<SizeConstraint> for SizeConstraint
impl PartialEq<SizeConstraint> for SizeConstraint
source§fn eq(&self, other: &SizeConstraint) -> bool
fn eq(&self, other: &SizeConstraint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.