Enum cursive::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
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 more
sourceimpl Debug for SizeConstraint
impl Debug for SizeConstraint
sourceimpl Hash for SizeConstraint
impl Hash for SizeConstraint
sourceimpl PartialEq<SizeConstraint> for SizeConstraint
impl PartialEq<SizeConstraint> for SizeConstraint
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SizeConstraint) -> bool
fn ne(&self, other: &SizeConstraint) -> bool
This method tests for !=
.
impl Copy for SizeConstraint
impl Eq for SizeConstraint
impl StructuralEq for SizeConstraint
impl StructuralPartialEq 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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