pub struct SizeStyle {
pub width: Length,
pub height: Length,
pub min_width: Option<Length>,
pub min_height: Option<Length>,
pub max_width: Option<Length>,
pub max_height: Option<Length>,
}Fields§
§width: Length§height: Length§min_width: Option<Length>Minimum width constraint.
Percent sizing semantics follow Length rules: Fill/Fraction only resolve under a
definite containing block; otherwise they should behave like auto in measurement paths.
min_height: Option<Length>Minimum height constraint.
max_width: Option<Length>Maximum width constraint.
max_height: Option<Length>Maximum height constraint.
Trait Implementations§
impl Copy for SizeStyle
impl StructuralPartialEq for SizeStyle
Auto Trait Implementations§
impl Freeze for SizeStyle
impl RefUnwindSafe for SizeStyle
impl Send for SizeStyle
impl Sync for SizeStyle
impl Unpin for SizeStyle
impl UnsafeUnpin for SizeStyle
impl UnwindSafe for SizeStyle
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