#[non_exhaustive]pub struct LayoutConstraints {
pub min: Option<LogicalSize>,
pub max: Option<LogicalSize>,
pub preferred: LogicalSize,
}
Expand description
This struct describes layout constraints of a resizable element, such as a window.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.min: Option<LogicalSize>
The minimum size.
max: Option<LogicalSize>
The maximum size.
preferred: LogicalSize
The preferred size.
Trait Implementations§
Source§impl Clone for LayoutConstraints
impl Clone for LayoutConstraints
Source§fn clone(&self) -> LayoutConstraints
fn clone(&self) -> LayoutConstraints
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 LayoutConstraints
impl Debug for LayoutConstraints
Source§impl Default for LayoutConstraints
impl Default for LayoutConstraints
Source§fn default() -> LayoutConstraints
fn default() -> LayoutConstraints
Returns the “default value” for a type. Read more
Source§impl PartialEq for LayoutConstraints
impl PartialEq for LayoutConstraints
impl Copy 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 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