pub struct LayoutConstraints {
pub min_width: u16,
pub max_width: u16,
pub min_height: u16,
pub max_height: u16,
}Expand description
Constraint bounds for a widget’s layout.
Fields§
§min_width: u16Minimum allowed width.
max_width: u16Maximum allowed width (0 = unconstrained).
min_height: u16Minimum allowed height.
max_height: u16Maximum allowed height (0 = unconstrained).
Implementations§
Trait Implementations§
Source§impl Clone for LayoutConstraints
impl Clone for LayoutConstraints
Source§fn clone(&self) -> LayoutConstraints
fn clone(&self) -> LayoutConstraints
Returns a duplicate 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 LayoutConstraints
impl Debug for LayoutConstraints
Source§impl PartialEq for LayoutConstraints
impl PartialEq for LayoutConstraints
impl Copy for LayoutConstraints
impl Eq for LayoutConstraints
impl StructuralPartialEq for LayoutConstraints
Auto Trait Implementations§
impl Freeze for LayoutConstraints
impl RefUnwindSafe for LayoutConstraints
impl Send for LayoutConstraints
impl Sync for LayoutConstraints
impl Unpin for LayoutConstraints
impl UnsafeUnpin for LayoutConstraints
impl UnwindSafe for LayoutConstraints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.