pub struct BoxWithConstraintsScope {
pub min_width: f32,
pub max_width: f32,
pub min_height: f32,
pub max_height: f32,
}Expand description
Scope passed to BoxWithConstraints
content. All values are in dp.
Fields§
§min_width: f32§max_width: f32§min_height: f32§max_height: f32Implementations§
Source§impl BoxWithConstraintsScope
impl BoxWithConstraintsScope
Sourcepub fn has_bounded_width(&self) -> bool
pub fn has_bounded_width(&self) -> bool
true if the width is bounded by the parent (i.e. not infinite).
Sourcepub fn has_bounded_height(&self) -> bool
pub fn has_bounded_height(&self) -> bool
true if the height is bounded by the parent (i.e. not infinite).
Trait Implementations§
Source§impl Clone for BoxWithConstraintsScope
impl Clone for BoxWithConstraintsScope
Source§fn clone(&self) -> BoxWithConstraintsScope
fn clone(&self) -> BoxWithConstraintsScope
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 BoxWithConstraintsScope
Source§impl Debug for BoxWithConstraintsScope
impl Debug for BoxWithConstraintsScope
Source§impl PartialEq for BoxWithConstraintsScope
impl PartialEq for BoxWithConstraintsScope
Source§fn eq(&self, other: &BoxWithConstraintsScope) -> bool
fn eq(&self, other: &BoxWithConstraintsScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoxWithConstraintsScope
Auto Trait Implementations§
impl Freeze for BoxWithConstraintsScope
impl RefUnwindSafe for BoxWithConstraintsScope
impl Send for BoxWithConstraintsScope
impl Sync for BoxWithConstraintsScope
impl Unpin for BoxWithConstraintsScope
impl UnsafeUnpin for BoxWithConstraintsScope
impl UnwindSafe for BoxWithConstraintsScope
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