#[non_exhaustive]pub struct Constraints {
pub width: Option<f32>,
pub height: Option<f32>,
pub available_width: Available,
pub available_height: Available,
}Expand description
What layout asks a widget in Widget::measure.
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.width: Option<f32>A width layout already fixed: the answer’s width must be this.
height: Option<f32>A height layout already fixed: the answer’s height must be this.
available_width: AvailableRoom for the width.
available_height: AvailableRoom for the height.
Trait Implementations§
Source§impl Clone for Constraints
impl Clone for Constraints
impl Copy for Constraints
Source§impl Debug for Constraints
impl Debug for Constraints
Source§impl PartialEq for Constraints
impl PartialEq for Constraints
impl StructuralPartialEq for Constraints
Auto Trait Implementations§
impl Freeze for Constraints
impl RefUnwindSafe for Constraints
impl Send for Constraints
impl Sync for Constraints
impl Unpin for Constraints
impl UnsafeUnpin for Constraints
impl UnwindSafe for Constraints
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