pub enum BoxSizing {
BorderBox,
ContentBox,
}
Expand description
Specifies whether size styles for this node are assigned to the node’s “content box” or “border box”
- The “content box” is the node’s inner size excluding padding, border and margin
- The “border box” is the node’s outer size including padding and border (but still excluding margin)
This property modifies the application of the following styles:
size
min_size
max_size
flex_basis
See https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
Variants§
BorderBox
Size styles such size, min_size, max_size specify the box’s “border box” (the size excluding margin but including padding/border)
ContentBox
Size styles such size, min_size, max_size specify the box’s “content box” (the size excluding padding/border/margin)
Trait Implementations§
impl Copy for BoxSizing
impl Eq for BoxSizing
impl StructuralPartialEq for BoxSizing
Auto Trait Implementations§
impl Freeze for BoxSizing
impl RefUnwindSafe for BoxSizing
impl Send for BoxSizing
impl Sync for BoxSizing
impl Unpin for BoxSizing
impl UnwindSafe for BoxSizing
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