pub enum LonghandId {
Show 42 variants
Width,
Height,
MinWidth,
MinHeight,
MaxWidth,
MaxHeight,
MarginTop,
MarginRight,
MarginBottom,
MarginLeft,
PaddingTop,
PaddingRight,
PaddingBottom,
PaddingLeft,
RowGap,
ColumnGap,
Color,
BackgroundColor,
Opacity,
BorderTopWidth,
BorderRightWidth,
BorderBottomWidth,
BorderLeftWidth,
BorderTopStyle,
BorderRightStyle,
BorderBottomStyle,
BorderLeftStyle,
BorderTopColor,
BorderRightColor,
BorderBottomColor,
BorderLeftColor,
BorderTopLeftRadius,
BorderTopRightRadius,
BorderBottomRightRadius,
BorderBottomLeftRadius,
FontFamily,
FontSize,
FontWeight,
FontStyle,
LineHeight,
LetterSpacing,
TextAlign,
}Expand description
Every longhand property. Shorthands expand to these when parsed, so the cascade only ever deals with longhands.
Variants§
Width
width
Height
height
MinWidth
min-width
MinHeight
min-height
MaxWidth
max-width
MaxHeight
max-height
MarginTop
margin-top
MarginRight
margin-right
MarginBottom
margin-bottom
MarginLeft
margin-left
PaddingTop
padding-top
PaddingRight
padding-right
PaddingBottom
padding-bottom
PaddingLeft
padding-left
RowGap
row-gap
ColumnGap
column-gap
Color
color
BackgroundColor
background-color
Opacity
opacity
BorderTopWidth
border-top-width
BorderRightWidth
border-right-width
BorderBottomWidth
border-bottom-width
BorderLeftWidth
border-left-width
BorderTopStyle
border-top-style
BorderRightStyle
border-right-style
BorderBottomStyle
border-bottom-style
BorderLeftStyle
border-left-style
BorderTopColor
border-top-color
BorderRightColor
border-right-color
BorderBottomColor
border-bottom-color
BorderLeftColor
border-left-color
BorderTopLeftRadius
border-top-left-radius
BorderTopRightRadius
border-top-right-radius
BorderBottomRightRadius
border-bottom-right-radius
BorderBottomLeftRadius
border-bottom-left-radius
FontFamily
font-family
FontSize
font-size
FontWeight
font-weight
FontStyle
font-style
LineHeight
line-height
LetterSpacing
letter-spacing
TextAlign
text-align
Implementations§
Source§impl LonghandId
impl LonghandId
pub const ALL: &'static [LonghandId]
Sourcepub fn is_inherited(self) -> bool
pub fn is_inherited(self) -> bool
Whether the property inherits from the parent by default.
Trait Implementations§
Source§impl Clone for LonghandId
impl Clone for LonghandId
Source§fn clone(&self) -> LonghandId
fn clone(&self) -> LonghandId
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 moreimpl Copy for LonghandId
Source§impl Debug for LonghandId
impl Debug for LonghandId
impl Eq for LonghandId
Source§impl Hash for LonghandId
impl Hash for LonghandId
Source§impl PartialEq for LonghandId
impl PartialEq for LonghandId
Source§fn eq(&self, other: &LonghandId) -> bool
fn eq(&self, other: &LonghandId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LonghandId
Auto Trait Implementations§
impl Freeze for LonghandId
impl RefUnwindSafe for LonghandId
impl Send for LonghandId
impl Sync for LonghandId
impl Unpin for LonghandId
impl UnsafeUnpin for LonghandId
impl UnwindSafe for LonghandId
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