Enum cursive::view::SizeConstraint [−][src]
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)
Tuple Fields
0: usize
Always return the included size, no matter what the child needs.
AtMost(usize)
Tuple Fields
0: usize
Returns the minimum of the included value and the child view’s size.
AtLeast(usize)
Tuple Fields
0: usize
Returns the maximum of the included value and the child view’s size.
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SizeConstraint
impl Send for SizeConstraint
impl Sync for SizeConstraint
impl Unpin for SizeConstraint
impl UnwindSafe for SizeConstraint
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.