#[repr(C, u8)]pub enum CssProperty {
Show 74 variants
TextColor(StyleTextColorValue),
FontSize(StyleFontSizeValue),
FontFamily(StyleFontFamilyVecValue),
TextAlign(StyleTextAlignValue),
LetterSpacing(StyleLetterSpacingValue),
LineHeight(StyleLineHeightValue),
WordSpacing(StyleWordSpacingValue),
TabWidth(StyleTabWidthValue),
Cursor(StyleCursorValue),
Display(LayoutDisplayValue),
Float(LayoutFloatValue),
BoxSizing(LayoutBoxSizingValue),
Width(LayoutWidthValue),
Height(LayoutHeightValue),
MinWidth(LayoutMinWidthValue),
MinHeight(LayoutMinHeightValue),
MaxWidth(LayoutMaxWidthValue),
MaxHeight(LayoutMaxHeightValue),
Position(LayoutPositionValue),
Top(LayoutTopValue),
Right(LayoutRightValue),
Left(LayoutLeftValue),
Bottom(LayoutBottomValue),
FlexWrap(LayoutFlexWrapValue),
FlexDirection(LayoutFlexDirectionValue),
FlexGrow(LayoutFlexGrowValue),
FlexShrink(LayoutFlexShrinkValue),
JustifyContent(LayoutJustifyContentValue),
AlignItems(LayoutAlignItemsValue),
AlignContent(LayoutAlignContentValue),
BackgroundContent(StyleBackgroundContentVecValue),
BackgroundPosition(StyleBackgroundPositionVecValue),
BackgroundSize(StyleBackgroundSizeVecValue),
BackgroundRepeat(StyleBackgroundRepeatVecValue),
OverflowX(LayoutOverflowValue),
OverflowY(LayoutOverflowValue),
PaddingTop(LayoutPaddingTopValue),
PaddingLeft(LayoutPaddingLeftValue),
PaddingRight(LayoutPaddingRightValue),
PaddingBottom(LayoutPaddingBottomValue),
MarginTop(LayoutMarginTopValue),
MarginLeft(LayoutMarginLeftValue),
MarginRight(LayoutMarginRightValue),
MarginBottom(LayoutMarginBottomValue),
BorderTopLeftRadius(StyleBorderTopLeftRadiusValue),
BorderTopRightRadius(StyleBorderTopRightRadiusValue),
BorderBottomLeftRadius(StyleBorderBottomLeftRadiusValue),
BorderBottomRightRadius(StyleBorderBottomRightRadiusValue),
BorderTopColor(StyleBorderTopColorValue),
BorderRightColor(StyleBorderRightColorValue),
BorderLeftColor(StyleBorderLeftColorValue),
BorderBottomColor(StyleBorderBottomColorValue),
BorderTopStyle(StyleBorderTopStyleValue),
BorderRightStyle(StyleBorderRightStyleValue),
BorderLeftStyle(StyleBorderLeftStyleValue),
BorderBottomStyle(StyleBorderBottomStyleValue),
BorderTopWidth(LayoutBorderTopWidthValue),
BorderRightWidth(LayoutBorderRightWidthValue),
BorderLeftWidth(LayoutBorderLeftWidthValue),
BorderBottomWidth(LayoutBorderBottomWidthValue),
BoxShadowLeft(StyleBoxShadowValue),
BoxShadowRight(StyleBoxShadowValue),
BoxShadowTop(StyleBoxShadowValue),
BoxShadowBottom(StyleBoxShadowValue),
ScrollbarStyle(ScrollbarStyleValue),
Opacity(StyleOpacityValue),
Transform(StyleTransformVecValue),
TransformOrigin(StyleTransformOriginValue),
PerspectiveOrigin(StylePerspectiveOriginValue),
BackfaceVisibility(StyleBackfaceVisibilityValue),
MixBlendMode(StyleMixBlendModeValue),
Filter(StyleFilterVecValue),
BackdropFilter(StyleFilterVecValue),
TextShadow(StyleBoxShadowValue),
}Expand description
Represents one parsed CSS key-value pair, such as "width: 20px" =>
CssProperty::Width(LayoutWidth::px(20.0))
Variants§
TextColor(StyleTextColorValue)
FontSize(StyleFontSizeValue)
FontFamily(StyleFontFamilyVecValue)
TextAlign(StyleTextAlignValue)
LetterSpacing(StyleLetterSpacingValue)
LineHeight(StyleLineHeightValue)
WordSpacing(StyleWordSpacingValue)
TabWidth(StyleTabWidthValue)
Cursor(StyleCursorValue)
Display(LayoutDisplayValue)
Float(LayoutFloatValue)
BoxSizing(LayoutBoxSizingValue)
Width(LayoutWidthValue)
Height(LayoutHeightValue)
MinWidth(LayoutMinWidthValue)
MinHeight(LayoutMinHeightValue)
MaxWidth(LayoutMaxWidthValue)
MaxHeight(LayoutMaxHeightValue)
Position(LayoutPositionValue)
Top(LayoutTopValue)
Right(LayoutRightValue)
Left(LayoutLeftValue)
Bottom(LayoutBottomValue)
FlexWrap(LayoutFlexWrapValue)
FlexDirection(LayoutFlexDirectionValue)
FlexGrow(LayoutFlexGrowValue)
FlexShrink(LayoutFlexShrinkValue)
JustifyContent(LayoutJustifyContentValue)
AlignItems(LayoutAlignItemsValue)
AlignContent(LayoutAlignContentValue)
BackgroundContent(StyleBackgroundContentVecValue)
BackgroundPosition(StyleBackgroundPositionVecValue)
BackgroundSize(StyleBackgroundSizeVecValue)
BackgroundRepeat(StyleBackgroundRepeatVecValue)
OverflowX(LayoutOverflowValue)
OverflowY(LayoutOverflowValue)
PaddingTop(LayoutPaddingTopValue)
PaddingLeft(LayoutPaddingLeftValue)
PaddingRight(LayoutPaddingRightValue)
PaddingBottom(LayoutPaddingBottomValue)
MarginTop(LayoutMarginTopValue)
MarginLeft(LayoutMarginLeftValue)
MarginRight(LayoutMarginRightValue)
MarginBottom(LayoutMarginBottomValue)
BorderTopLeftRadius(StyleBorderTopLeftRadiusValue)
BorderTopRightRadius(StyleBorderTopRightRadiusValue)
BorderBottomLeftRadius(StyleBorderBottomLeftRadiusValue)
BorderBottomRightRadius(StyleBorderBottomRightRadiusValue)
BorderTopColor(StyleBorderTopColorValue)
BorderRightColor(StyleBorderRightColorValue)
BorderLeftColor(StyleBorderLeftColorValue)
BorderBottomColor(StyleBorderBottomColorValue)
BorderTopStyle(StyleBorderTopStyleValue)
BorderRightStyle(StyleBorderRightStyleValue)
BorderLeftStyle(StyleBorderLeftStyleValue)
BorderBottomStyle(StyleBorderBottomStyleValue)
BorderTopWidth(LayoutBorderTopWidthValue)
BorderRightWidth(LayoutBorderRightWidthValue)
BorderLeftWidth(LayoutBorderLeftWidthValue)
BorderBottomWidth(LayoutBorderBottomWidthValue)
BoxShadowLeft(StyleBoxShadowValue)
BoxShadowRight(StyleBoxShadowValue)
BoxShadowTop(StyleBoxShadowValue)
BoxShadowBottom(StyleBoxShadowValue)
ScrollbarStyle(ScrollbarStyleValue)
Opacity(StyleOpacityValue)
Transform(StyleTransformVecValue)
TransformOrigin(StyleTransformOriginValue)
PerspectiveOrigin(StylePerspectiveOriginValue)
BackfaceVisibility(StyleBackfaceVisibilityValue)
MixBlendMode(StyleMixBlendModeValue)
Filter(StyleFilterVecValue)
BackdropFilter(StyleFilterVecValue)
TextShadow(StyleBoxShadowValue)
Implementations§
Source§impl CssProperty
impl CssProperty
pub fn is_initial(&self) -> bool
pub const fn const_none(prop_type: CssPropertyType) -> Self
pub const fn const_auto(prop_type: CssPropertyType) -> Self
pub const fn const_initial(prop_type: CssPropertyType) -> Self
pub const fn const_inherit(prop_type: CssPropertyType) -> Self
pub const fn const_text_color(input: StyleTextColor) -> Self
pub const fn const_font_size(input: StyleFontSize) -> Self
pub const fn const_font_family(input: StyleFontFamilyVec) -> Self
pub const fn const_text_align(input: StyleTextAlign) -> Self
pub const fn const_letter_spacing(input: StyleLetterSpacing) -> Self
pub const fn const_line_height(input: StyleLineHeight) -> Self
pub const fn const_word_spacing(input: StyleWordSpacing) -> Self
pub const fn const_tab_width(input: StyleTabWidth) -> Self
pub const fn const_cursor(input: StyleCursor) -> Self
pub const fn const_display(input: LayoutDisplay) -> Self
pub const fn const_float(input: LayoutFloat) -> Self
pub const fn const_box_sizing(input: LayoutBoxSizing) -> Self
pub const fn const_width(input: LayoutWidth) -> Self
pub const fn const_height(input: LayoutHeight) -> Self
pub const fn const_min_width(input: LayoutMinWidth) -> Self
pub const fn const_min_height(input: LayoutMinHeight) -> Self
pub const fn const_max_width(input: LayoutMaxWidth) -> Self
pub const fn const_max_height(input: LayoutMaxHeight) -> Self
pub const fn const_position(input: LayoutPosition) -> Self
pub const fn const_top(input: LayoutTop) -> Self
pub const fn const_right(input: LayoutRight) -> Self
pub const fn const_left(input: LayoutLeft) -> Self
pub const fn const_bottom(input: LayoutBottom) -> Self
pub const fn const_flex_wrap(input: LayoutFlexWrap) -> Self
pub const fn const_flex_direction(input: LayoutFlexDirection) -> Self
pub const fn const_flex_grow(input: LayoutFlexGrow) -> Self
pub const fn const_flex_shrink(input: LayoutFlexShrink) -> Self
pub const fn const_justify_content(input: LayoutJustifyContent) -> Self
pub const fn const_align_items(input: LayoutAlignItems) -> Self
pub const fn const_align_content(input: LayoutAlignContent) -> Self
pub const fn const_background_content(input: StyleBackgroundContentVec) -> Self
pub const fn const_background_position( input: StyleBackgroundPositionVec, ) -> Self
pub const fn const_background_size(input: StyleBackgroundSizeVec) -> Self
pub const fn const_background_repeat(input: StyleBackgroundRepeatVec) -> Self
pub const fn const_overflow_x(input: LayoutOverflow) -> Self
pub const fn const_overflow_y(input: LayoutOverflow) -> Self
pub const fn const_padding_top(input: LayoutPaddingTop) -> Self
pub const fn const_padding_left(input: LayoutPaddingLeft) -> Self
pub const fn const_padding_right(input: LayoutPaddingRight) -> Self
pub const fn const_padding_bottom(input: LayoutPaddingBottom) -> Self
pub const fn const_margin_top(input: LayoutMarginTop) -> Self
pub const fn const_margin_left(input: LayoutMarginLeft) -> Self
pub const fn const_margin_right(input: LayoutMarginRight) -> Self
pub const fn const_margin_bottom(input: LayoutMarginBottom) -> Self
pub const fn const_border_top_left_radius( input: StyleBorderTopLeftRadius, ) -> Self
pub const fn const_border_top_right_radius( input: StyleBorderTopRightRadius, ) -> Self
pub const fn const_border_bottom_left_radius( input: StyleBorderBottomLeftRadius, ) -> Self
pub const fn const_border_bottom_right_radius( input: StyleBorderBottomRightRadius, ) -> Self
pub const fn const_border_top_color(input: StyleBorderTopColor) -> Self
pub const fn const_border_right_color(input: StyleBorderRightColor) -> Self
pub const fn const_border_left_color(input: StyleBorderLeftColor) -> Self
pub const fn const_border_bottom_color(input: StyleBorderBottomColor) -> Self
pub const fn const_border_top_style(input: StyleBorderTopStyle) -> Self
pub const fn const_border_right_style(input: StyleBorderRightStyle) -> Self
pub const fn const_border_left_style(input: StyleBorderLeftStyle) -> Self
pub const fn const_border_bottom_style(input: StyleBorderBottomStyle) -> Self
pub const fn const_border_top_width(input: LayoutBorderTopWidth) -> Self
pub const fn const_border_right_width(input: LayoutBorderRightWidth) -> Self
pub const fn const_border_left_width(input: LayoutBorderLeftWidth) -> Self
pub const fn const_border_bottom_width(input: LayoutBorderBottomWidth) -> Self
pub const fn const_box_shadow_left(input: StyleBoxShadow) -> Self
pub const fn const_box_shadow_right(input: StyleBoxShadow) -> Self
pub const fn const_box_shadow_top(input: StyleBoxShadow) -> Self
pub const fn const_box_shadow_bottom(input: StyleBoxShadow) -> Self
pub const fn const_opacity(input: StyleOpacity) -> Self
pub const fn const_transform(input: StyleTransformVec) -> Self
pub const fn const_transform_origin(input: StyleTransformOrigin) -> Self
pub const fn const_perspective_origin(input: StylePerspectiveOrigin) -> Self
pub const fn const_backface_visiblity(input: StyleBackfaceVisibility) -> Self
Source§impl CssProperty
impl CssProperty
pub fn key(&self) -> &'static str
pub fn value(&self) -> String
pub fn format_css(&self) -> String
pub fn interpolate( &self, other: &Self, t: f32, interpolate_resolver: &InterpolateResolver, ) -> Self
Source§impl CssProperty
impl CssProperty
Sourcepub const fn get_type(&self) -> CssPropertyType
pub const fn get_type(&self) -> CssPropertyType
Return the type (key) of this property as a statically typed enum
pub const fn none(prop_type: CssPropertyType) -> Self
pub const fn auto(prop_type: CssPropertyType) -> Self
pub const fn initial(prop_type: CssPropertyType) -> Self
pub const fn inherit(prop_type: CssPropertyType) -> Self
pub const fn text_color(input: StyleTextColor) -> Self
pub const fn font_size(input: StyleFontSize) -> Self
pub const fn font_family(input: StyleFontFamilyVec) -> Self
pub const fn text_align(input: StyleTextAlign) -> Self
pub const fn letter_spacing(input: StyleLetterSpacing) -> Self
pub const fn line_height(input: StyleLineHeight) -> Self
pub const fn word_spacing(input: StyleWordSpacing) -> Self
pub const fn tab_width(input: StyleTabWidth) -> Self
pub const fn cursor(input: StyleCursor) -> Self
pub const fn display(input: LayoutDisplay) -> Self
pub const fn float(input: LayoutFloat) -> Self
pub const fn box_sizing(input: LayoutBoxSizing) -> Self
pub const fn width(input: LayoutWidth) -> Self
pub const fn height(input: LayoutHeight) -> Self
pub const fn min_width(input: LayoutMinWidth) -> Self
pub const fn min_height(input: LayoutMinHeight) -> Self
pub const fn max_width(input: LayoutMaxWidth) -> Self
pub const fn max_height(input: LayoutMaxHeight) -> Self
pub const fn position(input: LayoutPosition) -> Self
pub const fn top(input: LayoutTop) -> Self
pub const fn right(input: LayoutRight) -> Self
pub const fn left(input: LayoutLeft) -> Self
pub const fn bottom(input: LayoutBottom) -> Self
pub const fn flex_wrap(input: LayoutFlexWrap) -> Self
pub const fn flex_direction(input: LayoutFlexDirection) -> Self
pub const fn flex_grow(input: LayoutFlexGrow) -> Self
pub const fn flex_shrink(input: LayoutFlexShrink) -> Self
pub const fn justify_content(input: LayoutJustifyContent) -> Self
pub const fn align_items(input: LayoutAlignItems) -> Self
pub const fn align_content(input: LayoutAlignContent) -> Self
pub const fn background_content(input: StyleBackgroundContentVec) -> Self
pub const fn background_position(input: StyleBackgroundPositionVec) -> Self
pub const fn background_size(input: StyleBackgroundSizeVec) -> Self
pub const fn background_repeat(input: StyleBackgroundRepeatVec) -> Self
pub const fn overflow_x(input: LayoutOverflow) -> Self
pub const fn overflow_y(input: LayoutOverflow) -> Self
pub const fn padding_top(input: LayoutPaddingTop) -> Self
pub const fn padding_left(input: LayoutPaddingLeft) -> Self
pub const fn padding_right(input: LayoutPaddingRight) -> Self
pub const fn padding_bottom(input: LayoutPaddingBottom) -> Self
pub const fn margin_top(input: LayoutMarginTop) -> Self
pub const fn margin_left(input: LayoutMarginLeft) -> Self
pub const fn margin_right(input: LayoutMarginRight) -> Self
pub const fn margin_bottom(input: LayoutMarginBottom) -> Self
pub const fn border_top_left_radius(input: StyleBorderTopLeftRadius) -> Self
pub const fn border_top_right_radius(input: StyleBorderTopRightRadius) -> Self
pub const fn border_bottom_left_radius( input: StyleBorderBottomLeftRadius, ) -> Self
pub const fn border_bottom_right_radius( input: StyleBorderBottomRightRadius, ) -> Self
pub const fn border_top_color(input: StyleBorderTopColor) -> Self
pub const fn border_right_color(input: StyleBorderRightColor) -> Self
pub const fn border_left_color(input: StyleBorderLeftColor) -> Self
pub const fn border_bottom_color(input: StyleBorderBottomColor) -> Self
pub const fn border_top_style(input: StyleBorderTopStyle) -> Self
pub const fn border_right_style(input: StyleBorderRightStyle) -> Self
pub const fn border_left_style(input: StyleBorderLeftStyle) -> Self
pub const fn border_bottom_style(input: StyleBorderBottomStyle) -> Self
pub const fn border_top_width(input: LayoutBorderTopWidth) -> Self
pub const fn border_right_width(input: LayoutBorderRightWidth) -> Self
pub const fn border_left_width(input: LayoutBorderLeftWidth) -> Self
pub const fn border_bottom_width(input: LayoutBorderBottomWidth) -> Self
pub const fn box_shadow_left(input: StyleBoxShadow) -> Self
pub const fn box_shadow_right(input: StyleBoxShadow) -> Self
pub const fn box_shadow_top(input: StyleBoxShadow) -> Self
pub const fn box_shadow_bottom(input: StyleBoxShadow) -> Self
pub const fn opacity(input: StyleOpacity) -> Self
pub const fn transform(input: StyleTransformVec) -> Self
pub const fn transform_origin(input: StyleTransformOrigin) -> Self
pub const fn perspective_origin(input: StylePerspectiveOrigin) -> Self
pub const fn backface_visiblity(input: StyleBackfaceVisibility) -> Self
pub const fn as_background_content( &self, ) -> Option<&StyleBackgroundContentVecValue>
pub const fn as_background_position( &self, ) -> Option<&StyleBackgroundPositionVecValue>
pub const fn as_background_size(&self) -> Option<&StyleBackgroundSizeVecValue>
pub const fn as_background_repeat( &self, ) -> Option<&StyleBackgroundRepeatVecValue>
pub const fn as_font_size(&self) -> Option<&StyleFontSizeValue>
pub const fn as_font_family(&self) -> Option<&StyleFontFamilyVecValue>
pub const fn as_text_color(&self) -> Option<&StyleTextColorValue>
pub const fn as_text_align(&self) -> Option<&StyleTextAlignValue>
pub const fn as_line_height(&self) -> Option<&StyleLineHeightValue>
pub const fn as_letter_spacing(&self) -> Option<&StyleLetterSpacingValue>
pub const fn as_word_spacing(&self) -> Option<&StyleWordSpacingValue>
pub const fn as_tab_width(&self) -> Option<&StyleTabWidthValue>
pub const fn as_cursor(&self) -> Option<&StyleCursorValue>
pub const fn as_box_shadow_left(&self) -> Option<&StyleBoxShadowValue>
pub const fn as_box_shadow_right(&self) -> Option<&StyleBoxShadowValue>
pub const fn as_box_shadow_top(&self) -> Option<&StyleBoxShadowValue>
pub const fn as_box_shadow_bottom(&self) -> Option<&StyleBoxShadowValue>
pub const fn as_border_top_color(&self) -> Option<&StyleBorderTopColorValue>
pub const fn as_border_left_color(&self) -> Option<&StyleBorderLeftColorValue>
pub const fn as_border_right_color(&self) -> Option<&StyleBorderRightColorValue>
pub const fn as_border_bottom_color( &self, ) -> Option<&StyleBorderBottomColorValue>
pub const fn as_border_top_style(&self) -> Option<&StyleBorderTopStyleValue>
pub const fn as_border_left_style(&self) -> Option<&StyleBorderLeftStyleValue>
pub const fn as_border_right_style(&self) -> Option<&StyleBorderRightStyleValue>
pub const fn as_border_bottom_style( &self, ) -> Option<&StyleBorderBottomStyleValue>
pub const fn as_border_top_left_radius( &self, ) -> Option<&StyleBorderTopLeftRadiusValue>
pub const fn as_border_top_right_radius( &self, ) -> Option<&StyleBorderTopRightRadiusValue>
pub const fn as_border_bottom_left_radius( &self, ) -> Option<&StyleBorderBottomLeftRadiusValue>
pub const fn as_border_bottom_right_radius( &self, ) -> Option<&StyleBorderBottomRightRadiusValue>
pub const fn as_opacity(&self) -> Option<&StyleOpacityValue>
pub const fn as_transform(&self) -> Option<&StyleTransformVecValue>
pub const fn as_transform_origin(&self) -> Option<&StyleTransformOriginValue>
pub const fn as_perspective_origin( &self, ) -> Option<&StylePerspectiveOriginValue>
pub const fn as_backface_visibility( &self, ) -> Option<&StyleBackfaceVisibilityValue>
pub const fn as_mix_blend_mode(&self) -> Option<&StyleMixBlendModeValue>
pub const fn as_filter(&self) -> Option<&StyleFilterVecValue>
pub const fn as_backdrop_filter(&self) -> Option<&StyleFilterVecValue>
pub const fn as_text_shadow(&self) -> Option<&StyleBoxShadowValue>
pub const fn as_display(&self) -> Option<&LayoutDisplayValue>
pub const fn as_float(&self) -> Option<&LayoutFloatValue>
pub const fn as_box_sizing(&self) -> Option<&LayoutBoxSizingValue>
pub const fn as_width(&self) -> Option<&LayoutWidthValue>
pub const fn as_height(&self) -> Option<&LayoutHeightValue>
pub const fn as_min_width(&self) -> Option<&LayoutMinWidthValue>
pub const fn as_min_height(&self) -> Option<&LayoutMinHeightValue>
pub const fn as_max_width(&self) -> Option<&LayoutMaxWidthValue>
pub const fn as_max_height(&self) -> Option<&LayoutMaxHeightValue>
pub const fn as_position(&self) -> Option<&LayoutPositionValue>
pub const fn as_top(&self) -> Option<&LayoutTopValue>
pub const fn as_bottom(&self) -> Option<&LayoutBottomValue>
pub const fn as_right(&self) -> Option<&LayoutRightValue>
pub const fn as_left(&self) -> Option<&LayoutLeftValue>
pub const fn as_padding_top(&self) -> Option<&LayoutPaddingTopValue>
pub const fn as_padding_bottom(&self) -> Option<&LayoutPaddingBottomValue>
pub const fn as_padding_left(&self) -> Option<&LayoutPaddingLeftValue>
pub const fn as_padding_right(&self) -> Option<&LayoutPaddingRightValue>
pub const fn as_margin_top(&self) -> Option<&LayoutMarginTopValue>
pub const fn as_margin_bottom(&self) -> Option<&LayoutMarginBottomValue>
pub const fn as_margin_left(&self) -> Option<&LayoutMarginLeftValue>
pub const fn as_margin_right(&self) -> Option<&LayoutMarginRightValue>
pub const fn as_border_top_width(&self) -> Option<&LayoutBorderTopWidthValue>
pub const fn as_border_left_width(&self) -> Option<&LayoutBorderLeftWidthValue>
pub const fn as_border_right_width( &self, ) -> Option<&LayoutBorderRightWidthValue>
pub const fn as_border_bottom_width( &self, ) -> Option<&LayoutBorderBottomWidthValue>
pub const fn as_overflow_x(&self) -> Option<&LayoutOverflowValue>
pub const fn as_overflow_y(&self) -> Option<&LayoutOverflowValue>
pub const fn as_direction(&self) -> Option<&LayoutFlexDirectionValue>
pub const fn as_flex_wrap(&self) -> Option<&LayoutFlexWrapValue>
pub const fn as_flex_grow(&self) -> Option<&LayoutFlexGrowValue>
pub const fn as_flex_shrink(&self) -> Option<&LayoutFlexShrinkValue>
pub const fn as_justify_content(&self) -> Option<&LayoutJustifyContentValue>
pub const fn as_align_items(&self) -> Option<&LayoutAlignItemsValue>
pub const fn as_align_content(&self) -> Option<&LayoutAlignContentValue>
Trait Implementations§
Source§impl Clone for CssProperty
impl Clone for CssProperty
Source§fn clone(&self) -> CssProperty
fn clone(&self) -> CssProperty
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 CssProperty
impl Debug for CssProperty
Source§impl From<LayoutAlignContent> for CssProperty
impl From<LayoutAlignContent> for CssProperty
Source§fn from(e: LayoutAlignContent) -> Self
fn from(e: LayoutAlignContent) -> Self
Converts to this type from the input type.
Source§impl From<LayoutAlignItems> for CssProperty
impl From<LayoutAlignItems> for CssProperty
Source§fn from(e: LayoutAlignItems) -> Self
fn from(e: LayoutAlignItems) -> Self
Converts to this type from the input type.
Source§impl From<LayoutBorderBottomWidth> for CssProperty
impl From<LayoutBorderBottomWidth> for CssProperty
Source§fn from(e: LayoutBorderBottomWidth) -> Self
fn from(e: LayoutBorderBottomWidth) -> Self
Converts to this type from the input type.
Source§impl From<LayoutBorderLeftWidth> for CssProperty
impl From<LayoutBorderLeftWidth> for CssProperty
Source§fn from(e: LayoutBorderLeftWidth) -> Self
fn from(e: LayoutBorderLeftWidth) -> Self
Converts to this type from the input type.
Source§impl From<LayoutBorderRightWidth> for CssProperty
impl From<LayoutBorderRightWidth> for CssProperty
Source§fn from(e: LayoutBorderRightWidth) -> Self
fn from(e: LayoutBorderRightWidth) -> Self
Converts to this type from the input type.
Source§impl From<LayoutBorderTopWidth> for CssProperty
impl From<LayoutBorderTopWidth> for CssProperty
Source§fn from(e: LayoutBorderTopWidth) -> Self
fn from(e: LayoutBorderTopWidth) -> Self
Converts to this type from the input type.
Source§impl From<LayoutBottom> for CssProperty
impl From<LayoutBottom> for CssProperty
Source§fn from(e: LayoutBottom) -> Self
fn from(e: LayoutBottom) -> Self
Converts to this type from the input type.
Source§impl From<LayoutBoxSizing> for CssProperty
impl From<LayoutBoxSizing> for CssProperty
Source§fn from(e: LayoutBoxSizing) -> Self
fn from(e: LayoutBoxSizing) -> Self
Converts to this type from the input type.
Source§impl From<LayoutDisplay> for CssProperty
impl From<LayoutDisplay> for CssProperty
Source§fn from(e: LayoutDisplay) -> Self
fn from(e: LayoutDisplay) -> Self
Converts to this type from the input type.
Source§impl From<LayoutFlexDirection> for CssProperty
impl From<LayoutFlexDirection> for CssProperty
Source§fn from(e: LayoutFlexDirection) -> Self
fn from(e: LayoutFlexDirection) -> Self
Converts to this type from the input type.
Source§impl From<LayoutFlexGrow> for CssProperty
impl From<LayoutFlexGrow> for CssProperty
Source§fn from(e: LayoutFlexGrow) -> Self
fn from(e: LayoutFlexGrow) -> Self
Converts to this type from the input type.
Source§impl From<LayoutFlexShrink> for CssProperty
impl From<LayoutFlexShrink> for CssProperty
Source§fn from(e: LayoutFlexShrink) -> Self
fn from(e: LayoutFlexShrink) -> Self
Converts to this type from the input type.
Source§impl From<LayoutFlexWrap> for CssProperty
impl From<LayoutFlexWrap> for CssProperty
Source§fn from(e: LayoutFlexWrap) -> Self
fn from(e: LayoutFlexWrap) -> Self
Converts to this type from the input type.
Source§impl From<LayoutFloat> for CssProperty
impl From<LayoutFloat> for CssProperty
Source§fn from(e: LayoutFloat) -> Self
fn from(e: LayoutFloat) -> Self
Converts to this type from the input type.
Source§impl From<LayoutHeight> for CssProperty
impl From<LayoutHeight> for CssProperty
Source§fn from(e: LayoutHeight) -> Self
fn from(e: LayoutHeight) -> Self
Converts to this type from the input type.
Source§impl From<LayoutJustifyContent> for CssProperty
impl From<LayoutJustifyContent> for CssProperty
Source§fn from(e: LayoutJustifyContent) -> Self
fn from(e: LayoutJustifyContent) -> Self
Converts to this type from the input type.
Source§impl From<LayoutLeft> for CssProperty
impl From<LayoutLeft> for CssProperty
Source§fn from(e: LayoutLeft) -> Self
fn from(e: LayoutLeft) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMarginBottom> for CssProperty
impl From<LayoutMarginBottom> for CssProperty
Source§fn from(e: LayoutMarginBottom) -> Self
fn from(e: LayoutMarginBottom) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMarginLeft> for CssProperty
impl From<LayoutMarginLeft> for CssProperty
Source§fn from(e: LayoutMarginLeft) -> Self
fn from(e: LayoutMarginLeft) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMarginRight> for CssProperty
impl From<LayoutMarginRight> for CssProperty
Source§fn from(e: LayoutMarginRight) -> Self
fn from(e: LayoutMarginRight) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMarginTop> for CssProperty
impl From<LayoutMarginTop> for CssProperty
Source§fn from(e: LayoutMarginTop) -> Self
fn from(e: LayoutMarginTop) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMaxHeight> for CssProperty
impl From<LayoutMaxHeight> for CssProperty
Source§fn from(e: LayoutMaxHeight) -> Self
fn from(e: LayoutMaxHeight) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMaxWidth> for CssProperty
impl From<LayoutMaxWidth> for CssProperty
Source§fn from(e: LayoutMaxWidth) -> Self
fn from(e: LayoutMaxWidth) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMinHeight> for CssProperty
impl From<LayoutMinHeight> for CssProperty
Source§fn from(e: LayoutMinHeight) -> Self
fn from(e: LayoutMinHeight) -> Self
Converts to this type from the input type.
Source§impl From<LayoutMinWidth> for CssProperty
impl From<LayoutMinWidth> for CssProperty
Source§fn from(e: LayoutMinWidth) -> Self
fn from(e: LayoutMinWidth) -> Self
Converts to this type from the input type.
Source§impl From<LayoutPaddingBottom> for CssProperty
impl From<LayoutPaddingBottom> for CssProperty
Source§fn from(e: LayoutPaddingBottom) -> Self
fn from(e: LayoutPaddingBottom) -> Self
Converts to this type from the input type.
Source§impl From<LayoutPaddingLeft> for CssProperty
impl From<LayoutPaddingLeft> for CssProperty
Source§fn from(e: LayoutPaddingLeft) -> Self
fn from(e: LayoutPaddingLeft) -> Self
Converts to this type from the input type.
Source§impl From<LayoutPaddingRight> for CssProperty
impl From<LayoutPaddingRight> for CssProperty
Source§fn from(e: LayoutPaddingRight) -> Self
fn from(e: LayoutPaddingRight) -> Self
Converts to this type from the input type.
Source§impl From<LayoutPaddingTop> for CssProperty
impl From<LayoutPaddingTop> for CssProperty
Source§fn from(e: LayoutPaddingTop) -> Self
fn from(e: LayoutPaddingTop) -> Self
Converts to this type from the input type.
Source§impl From<LayoutPosition> for CssProperty
impl From<LayoutPosition> for CssProperty
Source§fn from(e: LayoutPosition) -> Self
fn from(e: LayoutPosition) -> Self
Converts to this type from the input type.
Source§impl From<LayoutRight> for CssProperty
impl From<LayoutRight> for CssProperty
Source§fn from(e: LayoutRight) -> Self
fn from(e: LayoutRight) -> Self
Converts to this type from the input type.
Source§impl From<LayoutTop> for CssProperty
impl From<LayoutTop> for CssProperty
Source§impl From<LayoutWidth> for CssProperty
impl From<LayoutWidth> for CssProperty
Source§fn from(e: LayoutWidth) -> Self
fn from(e: LayoutWidth) -> Self
Converts to this type from the input type.
Source§impl From<ScrollbarStyle> for CssProperty
impl From<ScrollbarStyle> for CssProperty
Source§fn from(e: ScrollbarStyle) -> Self
fn from(e: ScrollbarStyle) -> Self
Converts to this type from the input type.
Source§impl From<StyleBackfaceVisibility> for CssProperty
impl From<StyleBackfaceVisibility> for CssProperty
Source§fn from(e: StyleBackfaceVisibility) -> Self
fn from(e: StyleBackfaceVisibility) -> Self
Converts to this type from the input type.
Source§impl From<StyleBackgroundContentVec> for CssProperty
impl From<StyleBackgroundContentVec> for CssProperty
Source§fn from(e: StyleBackgroundContentVec) -> Self
fn from(e: StyleBackgroundContentVec) -> Self
Converts to this type from the input type.
Source§impl From<StyleBackgroundPositionVec> for CssProperty
impl From<StyleBackgroundPositionVec> for CssProperty
Source§fn from(e: StyleBackgroundPositionVec) -> Self
fn from(e: StyleBackgroundPositionVec) -> Self
Converts to this type from the input type.
Source§impl From<StyleBackgroundRepeatVec> for CssProperty
impl From<StyleBackgroundRepeatVec> for CssProperty
Source§fn from(e: StyleBackgroundRepeatVec) -> Self
fn from(e: StyleBackgroundRepeatVec) -> Self
Converts to this type from the input type.
Source§impl From<StyleBackgroundSizeVec> for CssProperty
impl From<StyleBackgroundSizeVec> for CssProperty
Source§fn from(e: StyleBackgroundSizeVec) -> Self
fn from(e: StyleBackgroundSizeVec) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderBottomColor> for CssProperty
impl From<StyleBorderBottomColor> for CssProperty
Source§fn from(e: StyleBorderBottomColor) -> Self
fn from(e: StyleBorderBottomColor) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderBottomLeftRadius> for CssProperty
impl From<StyleBorderBottomLeftRadius> for CssProperty
Source§fn from(e: StyleBorderBottomLeftRadius) -> Self
fn from(e: StyleBorderBottomLeftRadius) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderBottomRightRadius> for CssProperty
impl From<StyleBorderBottomRightRadius> for CssProperty
Source§fn from(e: StyleBorderBottomRightRadius) -> Self
fn from(e: StyleBorderBottomRightRadius) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderBottomStyle> for CssProperty
impl From<StyleBorderBottomStyle> for CssProperty
Source§fn from(e: StyleBorderBottomStyle) -> Self
fn from(e: StyleBorderBottomStyle) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderLeftColor> for CssProperty
impl From<StyleBorderLeftColor> for CssProperty
Source§fn from(e: StyleBorderLeftColor) -> Self
fn from(e: StyleBorderLeftColor) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderLeftStyle> for CssProperty
impl From<StyleBorderLeftStyle> for CssProperty
Source§fn from(e: StyleBorderLeftStyle) -> Self
fn from(e: StyleBorderLeftStyle) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderRightColor> for CssProperty
impl From<StyleBorderRightColor> for CssProperty
Source§fn from(e: StyleBorderRightColor) -> Self
fn from(e: StyleBorderRightColor) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderRightStyle> for CssProperty
impl From<StyleBorderRightStyle> for CssProperty
Source§fn from(e: StyleBorderRightStyle) -> Self
fn from(e: StyleBorderRightStyle) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderTopColor> for CssProperty
impl From<StyleBorderTopColor> for CssProperty
Source§fn from(e: StyleBorderTopColor) -> Self
fn from(e: StyleBorderTopColor) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderTopLeftRadius> for CssProperty
impl From<StyleBorderTopLeftRadius> for CssProperty
Source§fn from(e: StyleBorderTopLeftRadius) -> Self
fn from(e: StyleBorderTopLeftRadius) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderTopRightRadius> for CssProperty
impl From<StyleBorderTopRightRadius> for CssProperty
Source§fn from(e: StyleBorderTopRightRadius) -> Self
fn from(e: StyleBorderTopRightRadius) -> Self
Converts to this type from the input type.
Source§impl From<StyleBorderTopStyle> for CssProperty
impl From<StyleBorderTopStyle> for CssProperty
Source§fn from(e: StyleBorderTopStyle) -> Self
fn from(e: StyleBorderTopStyle) -> Self
Converts to this type from the input type.
Source§impl From<StyleCursor> for CssProperty
impl From<StyleCursor> for CssProperty
Source§fn from(e: StyleCursor) -> Self
fn from(e: StyleCursor) -> Self
Converts to this type from the input type.
Source§impl From<StyleFontFamilyVec> for CssProperty
impl From<StyleFontFamilyVec> for CssProperty
Source§fn from(e: StyleFontFamilyVec) -> Self
fn from(e: StyleFontFamilyVec) -> Self
Converts to this type from the input type.
Source§impl From<StyleFontSize> for CssProperty
impl From<StyleFontSize> for CssProperty
Source§fn from(e: StyleFontSize) -> Self
fn from(e: StyleFontSize) -> Self
Converts to this type from the input type.
Source§impl From<StyleLetterSpacing> for CssProperty
impl From<StyleLetterSpacing> for CssProperty
Source§fn from(e: StyleLetterSpacing) -> Self
fn from(e: StyleLetterSpacing) -> Self
Converts to this type from the input type.
Source§impl From<StyleLineHeight> for CssProperty
impl From<StyleLineHeight> for CssProperty
Source§fn from(e: StyleLineHeight) -> Self
fn from(e: StyleLineHeight) -> Self
Converts to this type from the input type.
Source§impl From<StyleMixBlendMode> for CssProperty
impl From<StyleMixBlendMode> for CssProperty
Source§fn from(e: StyleMixBlendMode) -> Self
fn from(e: StyleMixBlendMode) -> Self
Converts to this type from the input type.
Source§impl From<StyleOpacity> for CssProperty
impl From<StyleOpacity> for CssProperty
Source§fn from(e: StyleOpacity) -> Self
fn from(e: StyleOpacity) -> Self
Converts to this type from the input type.
Source§impl From<StylePerspectiveOrigin> for CssProperty
impl From<StylePerspectiveOrigin> for CssProperty
Source§fn from(e: StylePerspectiveOrigin) -> Self
fn from(e: StylePerspectiveOrigin) -> Self
Converts to this type from the input type.
Source§impl From<StyleTabWidth> for CssProperty
impl From<StyleTabWidth> for CssProperty
Source§fn from(e: StyleTabWidth) -> Self
fn from(e: StyleTabWidth) -> Self
Converts to this type from the input type.
Source§impl From<StyleTextAlign> for CssProperty
impl From<StyleTextAlign> for CssProperty
Source§fn from(e: StyleTextAlign) -> Self
fn from(e: StyleTextAlign) -> Self
Converts to this type from the input type.
Source§impl From<StyleTextColor> for CssProperty
impl From<StyleTextColor> for CssProperty
Source§fn from(e: StyleTextColor) -> Self
fn from(e: StyleTextColor) -> Self
Converts to this type from the input type.
Source§impl From<StyleTransformOrigin> for CssProperty
impl From<StyleTransformOrigin> for CssProperty
Source§fn from(e: StyleTransformOrigin) -> Self
fn from(e: StyleTransformOrigin) -> Self
Converts to this type from the input type.
Source§impl From<StyleTransformVec> for CssProperty
impl From<StyleTransformVec> for CssProperty
Source§fn from(e: StyleTransformVec) -> Self
fn from(e: StyleTransformVec) -> Self
Converts to this type from the input type.
Source§impl From<StyleWordSpacing> for CssProperty
impl From<StyleWordSpacing> for CssProperty
Source§fn from(e: StyleWordSpacing) -> Self
fn from(e: StyleWordSpacing) -> Self
Converts to this type from the input type.
Source§impl FromIterator<CssProperty> for CssPropertyVec
impl FromIterator<CssProperty> for CssPropertyVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssProperty>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssProperty>,
Creates a value from an iterator. Read more
Source§impl Hash for CssProperty
impl Hash for CssProperty
Source§impl Ord for CssProperty
impl Ord for CssProperty
Source§fn cmp(&self, other: &CssProperty) -> Ordering
fn cmp(&self, other: &CssProperty) -> 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 PartialEq for CssProperty
impl PartialEq for CssProperty
Source§impl PartialOrd for CssProperty
impl PartialOrd for CssProperty
impl Eq for CssProperty
impl StructuralPartialEq for CssProperty
Auto Trait Implementations§
impl Freeze for CssProperty
impl RefUnwindSafe for CssProperty
impl Send for CssProperty
impl Sync for CssProperty
impl Unpin for CssProperty
impl UnwindSafe for CssProperty
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