Enum cursive::view::SizeConstraint
source · Expand description
Single-dimensional constraint on a view size.
This describes a possible behaviour for a BoxView
.
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
sourceimpl SizeConstraint
impl SizeConstraint
Trait Implementations
sourceimpl Clone for SizeConstraint
impl Clone for SizeConstraint
sourcefn clone(&self) -> SizeConstraint
fn clone(&self) -> SizeConstraint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SizeConstraint
impl Debug for SizeConstraint
impl Copy for SizeConstraint
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more