pub struct LayoutConstraints {
pub min_width: f32,
pub max_width: f32,
pub min_height: f32,
pub max_height: f32,
}Expand description
Constraints passed to the Modifier::layout callback.
Mirrors Compose’s Constraints -> the element’s size must fall within
[min_width, max_width] × [min_height, max_height].
A dimension with INFINITY max means unbounded in that direction.
Fields§
§min_width: f32§max_width: f32§min_height: f32§max_height: f32Trait 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy 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