#[repr(u8)]pub enum LonghandDeclaration {
Show 33 variants
font_size(<FontSize as SpecifiedValue>::SpecifiedValue),
color(<RGBA as SpecifiedValue>::SpecifiedValue),
position(<Position as SpecifiedValue>::SpecifiedValue),
float(<Float as SpecifiedValue>::SpecifiedValue),
display(<Display as SpecifiedValue>::SpecifiedValue),
top(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
left(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
bottom(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
right(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
width(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
height(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
margin_top(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
margin_left(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
margin_bottom(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
margin_right(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue),
padding_top(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue),
padding_left(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue),
padding_bottom(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue),
padding_right(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue),
border_top_color(<Color as SpecifiedValue>::SpecifiedValue),
border_left_color(<Color as SpecifiedValue>::SpecifiedValue),
border_bottom_color(<Color as SpecifiedValue>::SpecifiedValue),
border_right_color(<Color as SpecifiedValue>::SpecifiedValue),
border_top_style(<LineStyle as SpecifiedValue>::SpecifiedValue),
border_left_style(<LineStyle as SpecifiedValue>::SpecifiedValue),
border_bottom_style(<LineStyle as SpecifiedValue>::SpecifiedValue),
border_right_style(<LineStyle as SpecifiedValue>::SpecifiedValue),
border_top_width(<LineWidth as SpecifiedValue>::SpecifiedValue),
border_left_width(<LineWidth as SpecifiedValue>::SpecifiedValue),
border_bottom_width(<LineWidth as SpecifiedValue>::SpecifiedValue),
border_right_width(<LineWidth as SpecifiedValue>::SpecifiedValue),
background_color(<Color as SpecifiedValue>::SpecifiedValue),
CssWide(LonghandId, CssWideKeyword),
}
Variants§
font_size(<FontSize as SpecifiedValue>::SpecifiedValue)
color(<RGBA as SpecifiedValue>::SpecifiedValue)
position(<Position as SpecifiedValue>::SpecifiedValue)
float(<Float as SpecifiedValue>::SpecifiedValue)
display(<Display as SpecifiedValue>::SpecifiedValue)
top(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
left(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
bottom(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
right(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
width(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
height(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
margin_top(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
margin_left(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
margin_bottom(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
margin_right(<LengthOrPercentageOrAuto as SpecifiedValue>::SpecifiedValue)
padding_top(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue)
padding_left(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue)
padding_bottom(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue)
padding_right(<LengthOrPercentage as SpecifiedValue>::SpecifiedValue)
border_top_color(<Color as SpecifiedValue>::SpecifiedValue)
border_left_color(<Color as SpecifiedValue>::SpecifiedValue)
border_bottom_color(<Color as SpecifiedValue>::SpecifiedValue)
border_right_color(<Color as SpecifiedValue>::SpecifiedValue)
border_top_style(<LineStyle as SpecifiedValue>::SpecifiedValue)
border_left_style(<LineStyle as SpecifiedValue>::SpecifiedValue)
border_bottom_style(<LineStyle as SpecifiedValue>::SpecifiedValue)
border_right_style(<LineStyle as SpecifiedValue>::SpecifiedValue)
border_top_width(<LineWidth as SpecifiedValue>::SpecifiedValue)
border_left_width(<LineWidth as SpecifiedValue>::SpecifiedValue)
border_bottom_width(<LineWidth as SpecifiedValue>::SpecifiedValue)
border_right_width(<LineWidth as SpecifiedValue>::SpecifiedValue)
background_color(<Color as SpecifiedValue>::SpecifiedValue)
CssWide(LonghandId, CssWideKeyword)
Implementations§
Source§impl LonghandDeclaration
impl LonghandDeclaration
pub fn if_early_cascade_into(&self, context: &mut EarlyCascadeContext<'_>)
pub fn if_late_cascade_into(&self, context: &mut CascadeContext<'_>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LonghandDeclaration
impl RefUnwindSafe for LonghandDeclaration
impl Send for LonghandDeclaration
impl Sync for LonghandDeclaration
impl Unpin for LonghandDeclaration
impl UnwindSafe for LonghandDeclaration
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more