pub enum BoxSizingStyleValue {
ContentBox(Ident),
BorderBox(Ident),
}Expand description
Represents the style value for box-sizing as defined in css-sizing-4.
The box-sizing CSS property sets whether an element’s width and height are calculated based on the content-box, which does not count the size of borders or padding, or border-box, which does count them.
The grammar is defined as:
content-box | border-boxVariants§
Trait Implementations§
Source§impl Clone for BoxSizingStyleValue
impl Clone for BoxSizingStyleValue
Source§fn clone(&self) -> BoxSizingStyleValue
fn clone(&self) -> BoxSizingStyleValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoxSizingStyleValue
impl Debug for BoxSizingStyleValue
Source§impl Hash for BoxSizingStyleValue
impl Hash for BoxSizingStyleValue
Source§impl Ord for BoxSizingStyleValue
impl Ord for BoxSizingStyleValue
Source§fn cmp(&self, other: &BoxSizingStyleValue) -> Ordering
fn cmp(&self, other: &BoxSizingStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for BoxSizingStyleValue
impl<'a> Parse<'a> for BoxSizingStyleValue
Source§impl PartialEq for BoxSizingStyleValue
impl PartialEq for BoxSizingStyleValue
Source§impl PartialOrd for BoxSizingStyleValue
impl PartialOrd for BoxSizingStyleValue
Source§impl<'a> Peek<'a> for BoxSizingStyleValue
impl<'a> Peek<'a> for BoxSizingStyleValue
Source§impl ToCursors for BoxSizingStyleValue
impl ToCursors for BoxSizingStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for BoxSizingStyleValue
impl StructuralPartialEq for BoxSizingStyleValue
Auto Trait Implementations§
impl Freeze for BoxSizingStyleValue
impl RefUnwindSafe for BoxSizingStyleValue
impl Send for BoxSizingStyleValue
impl Sync for BoxSizingStyleValue
impl Unpin for BoxSizingStyleValue
impl UnwindSafe for BoxSizingStyleValue
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