pub enum PropertyDeclaration {
Show 43 variants
Width(Size),
Height(Size),
MinWidth(Size),
MinHeight(Size),
MaxWidth(MaxSize),
MaxHeight(MaxSize),
MarginTop(Size),
MarginRight(Size),
MarginBottom(Size),
MarginLeft(Size),
PaddingTop(LengthPercentage),
PaddingRight(LengthPercentage),
PaddingBottom(LengthPercentage),
PaddingLeft(LengthPercentage),
RowGap(LengthPercentage),
ColumnGap(LengthPercentage),
Color(ColorValue),
BackgroundColor(ColorValue),
Opacity(f32),
BorderTopWidth(BorderWidth),
BorderRightWidth(BorderWidth),
BorderBottomWidth(BorderWidth),
BorderLeftWidth(BorderWidth),
BorderTopStyle(BorderStyle),
BorderRightStyle(BorderStyle),
BorderBottomStyle(BorderStyle),
BorderLeftStyle(BorderStyle),
BorderTopColor(ColorValue),
BorderRightColor(ColorValue),
BorderBottomColor(ColorValue),
BorderLeftColor(ColorValue),
BorderTopLeftRadius(LengthPercentage),
BorderTopRightRadius(LengthPercentage),
BorderBottomRightRadius(LengthPercentage),
BorderBottomLeftRadius(LengthPercentage),
FontFamily(FontFamily),
FontSize(FontSize),
FontWeight(FontWeight),
FontStyle(FontStyle),
LineHeight(LineHeight),
LetterSpacing(LetterSpacing),
TextAlign(TextAlign),
CssWide(LonghandId, CssWideKeyword),
}Expand description
A parsed declaration: one longhand and its specified value.
Variants§
Width(Size)
width
Height(Size)
height
MinWidth(Size)
min-width
MinHeight(Size)
min-height
MaxWidth(MaxSize)
max-width
MaxHeight(MaxSize)
max-height
MarginTop(Size)
margin-top
MarginRight(Size)
margin-right
MarginBottom(Size)
margin-bottom
MarginLeft(Size)
margin-left
PaddingTop(LengthPercentage)
padding-top
PaddingRight(LengthPercentage)
padding-right
PaddingBottom(LengthPercentage)
padding-bottom
PaddingLeft(LengthPercentage)
padding-left
RowGap(LengthPercentage)
row-gap
ColumnGap(LengthPercentage)
column-gap
Color(ColorValue)
color
BackgroundColor(ColorValue)
background-color
Opacity(f32)
opacity
BorderTopWidth(BorderWidth)
border-top-width
BorderRightWidth(BorderWidth)
border-right-width
BorderBottomWidth(BorderWidth)
border-bottom-width
BorderLeftWidth(BorderWidth)
border-left-width
BorderTopStyle(BorderStyle)
border-top-style
BorderRightStyle(BorderStyle)
border-right-style
BorderBottomStyle(BorderStyle)
border-bottom-style
BorderLeftStyle(BorderStyle)
border-left-style
BorderTopColor(ColorValue)
border-top-color
BorderRightColor(ColorValue)
border-right-color
BorderBottomColor(ColorValue)
border-bottom-color
BorderLeftColor(ColorValue)
border-left-color
BorderTopLeftRadius(LengthPercentage)
border-top-left-radius
BorderTopRightRadius(LengthPercentage)
border-top-right-radius
BorderBottomRightRadius(LengthPercentage)
border-bottom-right-radius
BorderBottomLeftRadius(LengthPercentage)
border-bottom-left-radius
FontFamily(FontFamily)
font-family
FontSize(FontSize)
font-size
FontWeight(FontWeight)
font-weight
FontStyle(FontStyle)
font-style
LineHeight(LineHeight)
line-height
LetterSpacing(LetterSpacing)
letter-spacing
TextAlign(TextAlign)
text-align
CssWide(LonghandId, CssWideKeyword)
inherit, initial, unset or revert for the given longhand.
Implementations§
Source§impl PropertyDeclaration
impl PropertyDeclaration
pub fn id(&self) -> LonghandId
Trait Implementations§
Source§impl Clone for PropertyDeclaration
impl Clone for PropertyDeclaration
Source§fn clone(&self) -> PropertyDeclaration
fn clone(&self) -> PropertyDeclaration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PropertyDeclaration
impl Debug for PropertyDeclaration
Source§impl PartialEq for PropertyDeclaration
impl PartialEq for PropertyDeclaration
Source§fn eq(&self, other: &PropertyDeclaration) -> bool
fn eq(&self, other: &PropertyDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PropertyDeclaration
Auto Trait Implementations§
impl Freeze for PropertyDeclaration
impl RefUnwindSafe for PropertyDeclaration
impl Send for PropertyDeclaration
impl Sync for PropertyDeclaration
impl Unpin for PropertyDeclaration
impl UnsafeUnpin for PropertyDeclaration
impl UnwindSafe for PropertyDeclaration
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