pub struct Limits { /* private fields */ }
Expand description
A set of size constraints for layouting.
Implementations§
Source§impl Limits
impl Limits
Sourcepub fn width(self, width: impl Into<Length>) -> Limits
pub fn width(self, width: impl Into<Length>) -> Limits
Applies a width constraint to the current Limits
.
Sourcepub fn height(self, height: impl Into<Length>) -> Limits
pub fn height(self, height: impl Into<Length>) -> Limits
Applies a height constraint to the current Limits
.
Sourcepub fn min_width(self, min_width: f32) -> Limits
pub fn min_width(self, min_width: f32) -> Limits
Applies a minimum width constraint to the current Limits
.
Sourcepub fn max_width(self, max_width: f32) -> Limits
pub fn max_width(self, max_width: f32) -> Limits
Applies a maximum width constraint to the current Limits
.
Sourcepub fn min_height(self, min_height: f32) -> Limits
pub fn min_height(self, min_height: f32) -> Limits
Applies a minimum height constraint to the current Limits
.
Sourcepub fn max_height(self, max_height: f32) -> Limits
pub fn max_height(self, max_height: f32) -> Limits
Applies a maximum height constraint to the current Limits
.
Trait Implementations§
impl Copy for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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