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 “content box” (the size excluding padding/border/margin)
ContentBox
Size styles such size, min_size, max_size specify the box’s “border box” (the size excluding margin but including padding/border)
Trait Implementations§
source§impl<'de> Deserialize<'de> for BoxSizing
impl<'de> Deserialize<'de> for BoxSizing
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)