Skip to main content

CssProperty

Enum CssProperty 

Source
#[repr(C, u8)]
pub enum CssProperty {
Show 152 variants CaretColor(CaretColorValue), CaretAnimationDuration(CaretAnimationDurationValue), CaretWidth(CaretWidthValue), SelectionBackgroundColor(SelectionBackgroundColorValue), SelectionColor(SelectionColorValue), SelectionRadius(SelectionRadiusValue), TextColor(StyleTextColorValue), FontSize(StyleFontSizeValue), FontFamily(StyleFontFamilyVecValue), FontWeight(StyleFontWeightValue), FontStyle(StyleFontStyleValue), TextAlign(StyleTextAlignValue), TextJustify(LayoutTextJustifyValue), VerticalAlign(StyleVerticalAlignValue), LetterSpacing(StyleLetterSpacingValue), TextIndent(StyleTextIndentValue), InitialLetter(StyleInitialLetterValue), LineClamp(StyleLineClampValue), HangingPunctuation(StyleHangingPunctuationValue), TextCombineUpright(StyleTextCombineUprightValue), ExclusionMargin(StyleExclusionMarginValue), HyphenationLanguage(StyleHyphenationLanguageValue), LineHeight(StyleLineHeightValue), WordSpacing(StyleWordSpacingValue), TabWidth(StyleTabWidthValue), WhiteSpace(StyleWhiteSpaceValue), Hyphens(StyleHyphensValue), Direction(StyleDirectionValue), UserSelect(StyleUserSelectValue), TextDecoration(StyleTextDecorationValue), 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(LayoutInsetBottomValue), ZIndex(LayoutZIndexValue), FlexWrap(LayoutFlexWrapValue), FlexDirection(LayoutFlexDirectionValue), FlexGrow(LayoutFlexGrowValue), FlexShrink(LayoutFlexShrinkValue), FlexBasis(LayoutFlexBasisValue), JustifyContent(LayoutJustifyContentValue), AlignItems(LayoutAlignItemsValue), AlignContent(LayoutAlignContentValue), ColumnGap(LayoutColumnGapValue), RowGap(LayoutRowGapValue), GridTemplateColumns(LayoutGridTemplateColumnsValue), GridTemplateRows(LayoutGridTemplateRowsValue), GridAutoColumns(LayoutGridAutoColumnsValue), GridAutoRows(LayoutGridAutoRowsValue), GridColumn(LayoutGridColumnValue), GridRow(LayoutGridRowValue), WritingMode(LayoutWritingModeValue), Clear(LayoutClearValue), BackgroundContent(StyleBackgroundContentVecValue), BackgroundPosition(StyleBackgroundPositionVecValue), BackgroundSize(StyleBackgroundSizeVecValue), BackgroundRepeat(StyleBackgroundRepeatVecValue), OverflowX(LayoutOverflowValue), OverflowY(LayoutOverflowValue), GridAutoFlow(LayoutGridAutoFlowValue), JustifySelf(LayoutJustifySelfValue), JustifyItems(LayoutJustifyItemsValue), Gap(LayoutGapValue), GridGap(LayoutGapValue), AlignSelf(LayoutAlignSelfValue), Font(StyleFontValue), PaddingTop(LayoutPaddingTopValue), PaddingLeft(LayoutPaddingLeftValue), PaddingRight(LayoutPaddingRightValue), PaddingBottom(LayoutPaddingBottomValue), PaddingInlineStart(LayoutPaddingInlineStartValue), PaddingInlineEnd(LayoutPaddingInlineEndValue), MarginTop(LayoutMarginTopValue), MarginLeft(LayoutMarginLeftValue), MarginRight(LayoutMarginRightValue), MarginBottom(LayoutMarginBottomValue), BorderTopLeftRadius(StyleBorderTopLeftRadiusValue), LayoutTextJustify(LayoutTextJustifyValue), 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), Scrollbar(ScrollbarStyleValue), ScrollbarWidth(LayoutScrollbarWidthValue), ScrollbarColor(StyleScrollbarColorValue), Opacity(StyleOpacityValue), Visibility(StyleVisibilityValue), Transform(StyleTransformVecValue), TransformOrigin(StyleTransformOriginValue), PerspectiveOrigin(StylePerspectiveOriginValue), BackfaceVisibility(StyleBackfaceVisibilityValue), MixBlendMode(StyleMixBlendModeValue), Filter(StyleFilterVecValue), BackdropFilter(StyleFilterVecValue), TextShadow(StyleBoxShadowValue), BreakBefore(PageBreakValue), BreakAfter(PageBreakValue), BreakInside(BreakInsideValue), Orphans(OrphansValue), Widows(WidowsValue), BoxDecorationBreak(BoxDecorationBreakValue), ColumnCount(ColumnCountValue), ColumnWidth(ColumnWidthValue), ColumnSpan(ColumnSpanValue), ColumnFill(ColumnFillValue), ColumnRuleWidth(ColumnRuleWidthValue), ColumnRuleStyle(ColumnRuleStyleValue), ColumnRuleColor(ColumnRuleColorValue), FlowInto(FlowIntoValue), FlowFrom(FlowFromValue), ShapeOutside(ShapeOutsideValue), ShapeInside(ShapeInsideValue), ClipPath(ClipPathValue), ShapeMargin(ShapeMarginValue), ShapeImageThreshold(ShapeImageThresholdValue), TableLayout(LayoutTableLayoutValue), BorderCollapse(StyleBorderCollapseValue), BorderSpacing(LayoutBorderSpacingValue), CaptionSide(StyleCaptionSideValue), EmptyCells(StyleEmptyCellsValue), Content(ContentValue), CounterReset(CounterResetValue), CounterIncrement(CounterIncrementValue), ListStyleType(StyleListStyleTypeValue), ListStylePosition(StyleListStylePositionValue), StringSet(StringSetValue),
}
Expand description

Represents one parsed CSS key-value pair, such as "width: 20px" => CssProperty::Width(LayoutWidth::px(20.0))

Variants§

§

CaretColor(CaretColorValue)

§

CaretAnimationDuration(CaretAnimationDurationValue)

§

CaretWidth(CaretWidthValue)

§

SelectionBackgroundColor(SelectionBackgroundColorValue)

§

SelectionColor(SelectionColorValue)

§

SelectionRadius(SelectionRadiusValue)

§

TextColor(StyleTextColorValue)

§

FontSize(StyleFontSizeValue)

§

FontFamily(StyleFontFamilyVecValue)

§

FontWeight(StyleFontWeightValue)

§

FontStyle(StyleFontStyleValue)

§

TextAlign(StyleTextAlignValue)

§

TextJustify(LayoutTextJustifyValue)

§

VerticalAlign(StyleVerticalAlignValue)

§

LetterSpacing(StyleLetterSpacingValue)

§

TextIndent(StyleTextIndentValue)

§

InitialLetter(StyleInitialLetterValue)

§

LineClamp(StyleLineClampValue)

§

HangingPunctuation(StyleHangingPunctuationValue)

§

TextCombineUpright(StyleTextCombineUprightValue)

§

ExclusionMargin(StyleExclusionMarginValue)

§

HyphenationLanguage(StyleHyphenationLanguageValue)

§

LineHeight(StyleLineHeightValue)

§

WordSpacing(StyleWordSpacingValue)

§

TabWidth(StyleTabWidthValue)

§

WhiteSpace(StyleWhiteSpaceValue)

§

Hyphens(StyleHyphensValue)

§

Direction(StyleDirectionValue)

§

UserSelect(StyleUserSelectValue)

§

TextDecoration(StyleTextDecorationValue)

§

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(LayoutInsetBottomValue)

§

ZIndex(LayoutZIndexValue)

§

FlexWrap(LayoutFlexWrapValue)

§

FlexDirection(LayoutFlexDirectionValue)

§

FlexGrow(LayoutFlexGrowValue)

§

FlexShrink(LayoutFlexShrinkValue)

§

FlexBasis(LayoutFlexBasisValue)

§

JustifyContent(LayoutJustifyContentValue)

§

AlignItems(LayoutAlignItemsValue)

§

AlignContent(LayoutAlignContentValue)

§

ColumnGap(LayoutColumnGapValue)

§

RowGap(LayoutRowGapValue)

§

GridTemplateColumns(LayoutGridTemplateColumnsValue)

§

GridTemplateRows(LayoutGridTemplateRowsValue)

§

GridAutoColumns(LayoutGridAutoColumnsValue)

§

GridAutoRows(LayoutGridAutoRowsValue)

§

GridColumn(LayoutGridColumnValue)

§

GridRow(LayoutGridRowValue)

§

WritingMode(LayoutWritingModeValue)

§

Clear(LayoutClearValue)

§

BackgroundContent(StyleBackgroundContentVecValue)

§

BackgroundPosition(StyleBackgroundPositionVecValue)

§

BackgroundSize(StyleBackgroundSizeVecValue)

§

BackgroundRepeat(StyleBackgroundRepeatVecValue)

§

OverflowX(LayoutOverflowValue)

§

OverflowY(LayoutOverflowValue)

§

GridAutoFlow(LayoutGridAutoFlowValue)

§

JustifySelf(LayoutJustifySelfValue)

§

JustifyItems(LayoutJustifyItemsValue)

§

Gap(LayoutGapValue)

§

GridGap(LayoutGapValue)

§

AlignSelf(LayoutAlignSelfValue)

§

Font(StyleFontValue)

§

PaddingTop(LayoutPaddingTopValue)

§

PaddingLeft(LayoutPaddingLeftValue)

§

PaddingRight(LayoutPaddingRightValue)

§

PaddingBottom(LayoutPaddingBottomValue)

§

PaddingInlineStart(LayoutPaddingInlineStartValue)

§

PaddingInlineEnd(LayoutPaddingInlineEndValue)

§

MarginTop(LayoutMarginTopValue)

§

MarginLeft(LayoutMarginLeftValue)

§

MarginRight(LayoutMarginRightValue)

§

MarginBottom(LayoutMarginBottomValue)

§

BorderTopLeftRadius(StyleBorderTopLeftRadiusValue)

§

LayoutTextJustify(LayoutTextJustifyValue)

§

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)

§

Scrollbar(ScrollbarStyleValue)

§

ScrollbarWidth(LayoutScrollbarWidthValue)

§

ScrollbarColor(StyleScrollbarColorValue)

§

Opacity(StyleOpacityValue)

§

Visibility(StyleVisibilityValue)

§

Transform(StyleTransformVecValue)

§

TransformOrigin(StyleTransformOriginValue)

§

PerspectiveOrigin(StylePerspectiveOriginValue)

§

BackfaceVisibility(StyleBackfaceVisibilityValue)

§

MixBlendMode(StyleMixBlendModeValue)

§

Filter(StyleFilterVecValue)

§

BackdropFilter(StyleFilterVecValue)

§

TextShadow(StyleBoxShadowValue)

§

BreakBefore(PageBreakValue)

§

BreakAfter(PageBreakValue)

§

BreakInside(BreakInsideValue)

§

Orphans(OrphansValue)

§

Widows(WidowsValue)

§

BoxDecorationBreak(BoxDecorationBreakValue)

§

ColumnCount(ColumnCountValue)

§

ColumnWidth(ColumnWidthValue)

§

ColumnSpan(ColumnSpanValue)

§

ColumnFill(ColumnFillValue)

§

ColumnRuleWidth(ColumnRuleWidthValue)

§

ColumnRuleStyle(ColumnRuleStyleValue)

§

ColumnRuleColor(ColumnRuleColorValue)

§

FlowInto(FlowIntoValue)

§

FlowFrom(FlowFromValue)

§

ShapeOutside(ShapeOutsideValue)

§

ShapeInside(ShapeInsideValue)

§

ClipPath(ClipPathValue)

§

ShapeMargin(ShapeMarginValue)

§

ShapeImageThreshold(ShapeImageThresholdValue)

§

TableLayout(LayoutTableLayoutValue)

§

BorderCollapse(StyleBorderCollapseValue)

§

BorderSpacing(LayoutBorderSpacingValue)

§

CaptionSide(StyleCaptionSideValue)

§

EmptyCells(StyleEmptyCellsValue)

§

Content(ContentValue)

§

CounterReset(CounterResetValue)

§

CounterIncrement(CounterIncrementValue)

§

ListStyleType(StyleListStyleTypeValue)

§

ListStylePosition(StyleListStylePositionValue)

§

StringSet(StringSetValue)

Implementations§

Source§

impl CssProperty

Source

pub fn key(&self) -> &'static str

Source

pub fn value(&self) -> String

Source

pub fn format_css(&self) -> String

Source

pub fn interpolate( &self, other: &Self, t: f32, interpolate_resolver: &InterpolateResolver, ) -> Self

Source

pub const fn get_type(&self) -> CssPropertyType

Return the type (key) of this property as a statically typed enum

Source

pub const fn none(prop_type: CssPropertyType) -> Self

Source

pub const fn auto(prop_type: CssPropertyType) -> Self

Source

pub const fn initial(prop_type: CssPropertyType) -> Self

Source

pub const fn inherit(prop_type: CssPropertyType) -> Self

Source

pub const fn text_color(input: StyleTextColor) -> Self

Source

pub const fn font_size(input: StyleFontSize) -> Self

Source

pub const fn font_family(input: StyleFontFamilyVec) -> Self

Source

pub const fn font_weight(input: StyleFontWeight) -> Self

Source

pub const fn font_style(input: StyleFontStyle) -> Self

Source

pub const fn text_align(input: StyleTextAlign) -> Self

Source

pub const fn text_justify(input: LayoutTextJustify) -> Self

Source

pub const fn vertical_align(input: StyleVerticalAlign) -> Self

Source

pub const fn letter_spacing(input: StyleLetterSpacing) -> Self

Source

pub const fn text_indent(input: StyleTextIndent) -> Self

Source

pub const fn line_height(input: StyleLineHeight) -> Self

Source

pub const fn word_spacing(input: StyleWordSpacing) -> Self

Source

pub const fn tab_width(input: StyleTabWidth) -> Self

Source

pub const fn cursor(input: StyleCursor) -> Self

Source

pub const fn user_select(input: StyleUserSelect) -> Self

Source

pub const fn text_decoration(input: StyleTextDecoration) -> Self

Source

pub const fn display(input: LayoutDisplay) -> Self

Source

pub const fn box_sizing(input: LayoutBoxSizing) -> Self

Source

pub const fn width(input: LayoutWidth) -> Self

Source

pub const fn height(input: LayoutHeight) -> Self

Source

pub const fn min_width(input: LayoutMinWidth) -> Self

Source

pub const fn caret_color(input: CaretColor) -> Self

Source

pub const fn caret_width(input: CaretWidth) -> Self

Source

pub const fn caret_animation_duration(input: CaretAnimationDuration) -> Self

Source

pub const fn selection_background_color(input: SelectionBackgroundColor) -> Self

Source

pub const fn selection_color(input: SelectionColor) -> Self

Source

pub const fn min_height(input: LayoutMinHeight) -> Self

Source

pub const fn max_width(input: LayoutMaxWidth) -> Self

Source

pub const fn max_height(input: LayoutMaxHeight) -> Self

Source

pub const fn position(input: LayoutPosition) -> Self

Source

pub const fn top(input: LayoutTop) -> Self

Source

pub const fn right(input: LayoutRight) -> Self

Source

pub const fn left(input: LayoutLeft) -> Self

Source

pub const fn bottom(input: LayoutInsetBottom) -> Self

Source

pub const fn z_index(input: LayoutZIndex) -> Self

Source

pub const fn flex_wrap(input: LayoutFlexWrap) -> Self

Source

pub const fn flex_direction(input: LayoutFlexDirection) -> Self

Source

pub const fn flex_grow(input: LayoutFlexGrow) -> Self

Source

pub const fn flex_shrink(input: LayoutFlexShrink) -> Self

Source

pub const fn justify_content(input: LayoutJustifyContent) -> Self

Source

pub const fn grid_auto_flow(input: LayoutGridAutoFlow) -> Self

Source

pub const fn justify_self(input: LayoutJustifySelf) -> Self

Source

pub const fn justify_items(input: LayoutJustifyItems) -> Self

Source

pub const fn gap(input: LayoutGap) -> Self

Source

pub const fn grid_gap(input: LayoutGap) -> Self

Source

pub const fn align_self(input: LayoutAlignSelf) -> Self

Source

pub const fn font(input: StyleFontFamilyVec) -> Self

Source

pub const fn align_items(input: LayoutAlignItems) -> Self

Source

pub const fn align_content(input: LayoutAlignContent) -> Self

Source

pub const fn background_content(input: StyleBackgroundContentVec) -> Self

Source

pub const fn background_position(input: StyleBackgroundPositionVec) -> Self

Source

pub const fn background_size(input: StyleBackgroundSizeVec) -> Self

Source

pub const fn background_repeat(input: StyleBackgroundRepeatVec) -> Self

Source

pub const fn overflow_x(input: LayoutOverflow) -> Self

Source

pub const fn overflow_y(input: LayoutOverflow) -> Self

Source

pub const fn padding_top(input: LayoutPaddingTop) -> Self

Source

pub const fn padding_left(input: LayoutPaddingLeft) -> Self

Source

pub const fn padding_right(input: LayoutPaddingRight) -> Self

Source

pub const fn padding_bottom(input: LayoutPaddingBottom) -> Self

Source

pub const fn margin_top(input: LayoutMarginTop) -> Self

Source

pub const fn margin_left(input: LayoutMarginLeft) -> Self

Source

pub const fn margin_right(input: LayoutMarginRight) -> Self

Source

pub const fn margin_bottom(input: LayoutMarginBottom) -> Self

Source

pub const fn border_top_left_radius(input: StyleBorderTopLeftRadius) -> Self

Source

pub const fn border_top_right_radius(input: StyleBorderTopRightRadius) -> Self

Source

pub const fn border_bottom_left_radius( input: StyleBorderBottomLeftRadius, ) -> Self

Source

pub const fn border_bottom_right_radius( input: StyleBorderBottomRightRadius, ) -> Self

Source

pub const fn border_top_color(input: StyleBorderTopColor) -> Self

Source

pub const fn border_right_color(input: StyleBorderRightColor) -> Self

Source

pub const fn border_left_color(input: StyleBorderLeftColor) -> Self

Source

pub const fn border_bottom_color(input: StyleBorderBottomColor) -> Self

Source

pub const fn border_top_style(input: StyleBorderTopStyle) -> Self

Source

pub const fn border_right_style(input: StyleBorderRightStyle) -> Self

Source

pub const fn border_left_style(input: StyleBorderLeftStyle) -> Self

Source

pub const fn border_bottom_style(input: StyleBorderBottomStyle) -> Self

Source

pub const fn border_top_width(input: LayoutBorderTopWidth) -> Self

Source

pub const fn border_right_width(input: LayoutBorderRightWidth) -> Self

Source

pub const fn border_left_width(input: LayoutBorderLeftWidth) -> Self

Source

pub const fn border_bottom_width(input: LayoutBorderBottomWidth) -> Self

Source

pub const fn box_shadow_left(input: StyleBoxShadow) -> Self

Source

pub const fn box_shadow_right(input: StyleBoxShadow) -> Self

Source

pub const fn box_shadow_top(input: StyleBoxShadow) -> Self

Source

pub const fn box_shadow_bottom(input: StyleBoxShadow) -> Self

Source

pub const fn opacity(input: StyleOpacity) -> Self

Source

pub const fn visibility(input: StyleVisibility) -> Self

Source

pub const fn transform(input: StyleTransformVec) -> Self

Source

pub const fn transform_origin(input: StyleTransformOrigin) -> Self

Source

pub const fn perspective_origin(input: StylePerspectiveOrigin) -> Self

Source

pub const fn backface_visiblity(input: StyleBackfaceVisibility) -> Self

Source

pub const fn break_before(input: PageBreak) -> Self

Source

pub const fn break_after(input: PageBreak) -> Self

Source

pub const fn break_inside(input: BreakInside) -> Self

Source

pub const fn orphans(input: Orphans) -> Self

Source

pub const fn widows(input: Widows) -> Self

Source

pub const fn box_decoration_break(input: BoxDecorationBreak) -> Self

Source

pub const fn column_count(input: ColumnCount) -> Self

Source

pub const fn column_width(input: ColumnWidth) -> Self

Source

pub const fn column_span(input: ColumnSpan) -> Self

Source

pub const fn column_fill(input: ColumnFill) -> Self

Source

pub const fn column_rule_width(input: ColumnRuleWidth) -> Self

Source

pub const fn column_rule_style(input: ColumnRuleStyle) -> Self

Source

pub const fn column_rule_color(input: ColumnRuleColor) -> Self

Source

pub const fn flow_into(input: FlowInto) -> Self

Source

pub const fn flow_from(input: FlowFrom) -> Self

Source

pub const fn shape_outside(input: ShapeOutside) -> Self

Source

pub const fn shape_inside(input: ShapeInside) -> Self

Source

pub const fn clip_path(input: ClipPath) -> Self

Source

pub const fn shape_margin(input: ShapeMargin) -> Self

Source

pub const fn shape_image_threshold(input: ShapeImageThreshold) -> Self

Source

pub const fn content(input: Content) -> Self

Source

pub const fn counter_reset(input: CounterReset) -> Self

Source

pub const fn counter_increment(input: CounterIncrement) -> Self

Source

pub const fn list_style_type(input: StyleListStyleType) -> Self

Source

pub const fn list_style_position(input: StyleListStylePosition) -> Self

Source

pub const fn string_set(input: StringSet) -> Self

Source

pub const fn table_layout(input: LayoutTableLayout) -> Self

Source

pub const fn border_collapse(input: StyleBorderCollapse) -> Self

Source

pub const fn border_spacing(input: LayoutBorderSpacing) -> Self

Source

pub const fn caption_side(input: StyleCaptionSide) -> Self

Source

pub const fn empty_cells(input: StyleEmptyCells) -> Self

Source

pub const fn as_z_index(&self) -> Option<&LayoutZIndexValue>

Source

pub const fn as_flex_basis(&self) -> Option<&LayoutFlexBasisValue>

Source

pub const fn as_column_gap(&self) -> Option<&LayoutColumnGapValue>

Source

pub const fn as_row_gap(&self) -> Option<&LayoutRowGapValue>

Source

pub const fn as_grid_template_columns( &self, ) -> Option<&LayoutGridTemplateColumnsValue>

Source

pub const fn as_grid_template_rows( &self, ) -> Option<&LayoutGridTemplateRowsValue>

Source

pub const fn as_grid_auto_columns(&self) -> Option<&LayoutGridAutoColumnsValue>

Source

pub const fn as_grid_auto_rows(&self) -> Option<&LayoutGridAutoRowsValue>

Source

pub const fn as_grid_column(&self) -> Option<&LayoutGridColumnValue>

Source

pub const fn as_grid_row(&self) -> Option<&LayoutGridRowValue>

Source

pub const fn as_writing_mode(&self) -> Option<&LayoutWritingModeValue>

Source

pub const fn as_clear(&self) -> Option<&LayoutClearValue>

Source

pub const fn as_layout_text_justify(&self) -> Option<&LayoutTextJustifyValue>

Source

pub const fn as_scrollbar(&self) -> Option<&ScrollbarStyleValue>

Source

pub const fn as_visibility(&self) -> Option<&StyleVisibilityValue>

Source

pub const fn as_background_content( &self, ) -> Option<&StyleBackgroundContentVecValue>

Source

pub const fn as_text_justify(&self) -> Option<&LayoutTextJustifyValue>

Source

pub const fn as_caret_color(&self) -> Option<&CaretColorValue>

Source

pub const fn as_caret_width(&self) -> Option<&CaretWidthValue>

Source

pub const fn as_caret_animation_duration( &self, ) -> Option<&CaretAnimationDurationValue>

Source

pub const fn as_selection_background_color( &self, ) -> Option<&SelectionBackgroundColorValue>

Source

pub const fn as_selection_color(&self) -> Option<&SelectionColorValue>

Source

pub const fn as_selection_radius(&self) -> Option<&SelectionRadiusValue>

Source

pub const fn as_background_position( &self, ) -> Option<&StyleBackgroundPositionVecValue>

Source

pub const fn as_background_size(&self) -> Option<&StyleBackgroundSizeVecValue>

Source

pub const fn as_background_repeat( &self, ) -> Option<&StyleBackgroundRepeatVecValue>

Source

pub const fn as_grid_auto_flow(&self) -> Option<&LayoutGridAutoFlowValue>

Source

pub const fn as_justify_self(&self) -> Option<&LayoutJustifySelfValue>

Source

pub const fn as_justify_items(&self) -> Option<&LayoutJustifyItemsValue>

Source

pub const fn as_gap(&self) -> Option<&LayoutGapValue>

Source

pub const fn as_grid_gap(&self) -> Option<&LayoutGapValue>

Source

pub const fn as_align_self(&self) -> Option<&LayoutAlignSelfValue>

Source

pub const fn as_font(&self) -> Option<&StyleFontValue>

Source

pub const fn as_font_size(&self) -> Option<&StyleFontSizeValue>

Source

pub const fn as_font_family(&self) -> Option<&StyleFontFamilyVecValue>

Source

pub const fn as_font_weight(&self) -> Option<&StyleFontWeightValue>

Source

pub const fn as_font_style(&self) -> Option<&StyleFontStyleValue>

Source

pub const fn as_text_color(&self) -> Option<&StyleTextColorValue>

Source

pub const fn as_text_align(&self) -> Option<&StyleTextAlignValue>

Source

pub const fn as_vertical_align(&self) -> Option<&StyleVerticalAlignValue>

Source

pub const fn as_line_height(&self) -> Option<&StyleLineHeightValue>

Source

pub const fn as_text_indent(&self) -> Option<&StyleTextIndentValue>

Source

pub const fn as_initial_letter(&self) -> Option<&StyleInitialLetterValue>

Source

pub const fn as_line_clamp(&self) -> Option<&StyleLineClampValue>

Source

pub const fn as_hanging_punctuation( &self, ) -> Option<&StyleHangingPunctuationValue>

Source

pub const fn as_text_combine_upright( &self, ) -> Option<&StyleTextCombineUprightValue>

Source

pub const fn as_exclusion_margin(&self) -> Option<&StyleExclusionMarginValue>

Source

pub const fn as_hyphenation_language( &self, ) -> Option<&StyleHyphenationLanguageValue>

Source

pub const fn as_letter_spacing(&self) -> Option<&StyleLetterSpacingValue>

Source

pub const fn as_word_spacing(&self) -> Option<&StyleWordSpacingValue>

Source

pub const fn as_tab_width(&self) -> Option<&StyleTabWidthValue>

Source

pub const fn as_cursor(&self) -> Option<&StyleCursorValue>

Source

pub const fn as_box_shadow_left(&self) -> Option<&StyleBoxShadowValue>

Source

pub const fn as_box_shadow_right(&self) -> Option<&StyleBoxShadowValue>

Source

pub const fn as_box_shadow_top(&self) -> Option<&StyleBoxShadowValue>

Source

pub const fn as_box_shadow_bottom(&self) -> Option<&StyleBoxShadowValue>

Source

pub const fn as_border_top_color(&self) -> Option<&StyleBorderTopColorValue>

Source

pub const fn as_border_left_color(&self) -> Option<&StyleBorderLeftColorValue>

Source

pub const fn as_border_right_color(&self) -> Option<&StyleBorderRightColorValue>

Source

pub const fn as_border_bottom_color( &self, ) -> Option<&StyleBorderBottomColorValue>

Source

pub const fn as_border_top_style(&self) -> Option<&StyleBorderTopStyleValue>

Source

pub const fn as_border_left_style(&self) -> Option<&StyleBorderLeftStyleValue>

Source

pub const fn as_border_right_style(&self) -> Option<&StyleBorderRightStyleValue>

Source

pub const fn as_border_bottom_style( &self, ) -> Option<&StyleBorderBottomStyleValue>

Source

pub const fn as_border_top_left_radius( &self, ) -> Option<&StyleBorderTopLeftRadiusValue>

Source

pub const fn as_border_top_right_radius( &self, ) -> Option<&StyleBorderTopRightRadiusValue>

Source

pub const fn as_border_bottom_left_radius( &self, ) -> Option<&StyleBorderBottomLeftRadiusValue>

Source

pub const fn as_border_bottom_right_radius( &self, ) -> Option<&StyleBorderBottomRightRadiusValue>

Source

pub const fn as_opacity(&self) -> Option<&StyleOpacityValue>

Source

pub const fn as_transform(&self) -> Option<&StyleTransformVecValue>

Source

pub const fn as_transform_origin(&self) -> Option<&StyleTransformOriginValue>

Source

pub const fn as_perspective_origin( &self, ) -> Option<&StylePerspectiveOriginValue>

Source

pub const fn as_backface_visibility( &self, ) -> Option<&StyleBackfaceVisibilityValue>

Source

pub const fn as_mix_blend_mode(&self) -> Option<&StyleMixBlendModeValue>

Source

pub const fn as_filter(&self) -> Option<&StyleFilterVecValue>

Source

pub const fn as_backdrop_filter(&self) -> Option<&StyleFilterVecValue>

Source

pub const fn as_text_shadow(&self) -> Option<&StyleBoxShadowValue>

Source

pub const fn as_display(&self) -> Option<&LayoutDisplayValue>

Source

pub const fn as_float(&self) -> Option<&LayoutFloatValue>

Source

pub const fn as_box_sizing(&self) -> Option<&LayoutBoxSizingValue>

Source

pub const fn as_width(&self) -> Option<&LayoutWidthValue>

Source

pub const fn as_height(&self) -> Option<&LayoutHeightValue>

Source

pub const fn as_min_width(&self) -> Option<&LayoutMinWidthValue>

Source

pub const fn as_min_height(&self) -> Option<&LayoutMinHeightValue>

Source

pub const fn as_max_width(&self) -> Option<&LayoutMaxWidthValue>

Source

pub const fn as_max_height(&self) -> Option<&LayoutMaxHeightValue>

Source

pub const fn as_position(&self) -> Option<&LayoutPositionValue>

Source

pub const fn as_top(&self) -> Option<&LayoutTopValue>

Source

pub const fn as_bottom(&self) -> Option<&LayoutInsetBottomValue>

Source

pub const fn as_right(&self) -> Option<&LayoutRightValue>

Source

pub const fn as_left(&self) -> Option<&LayoutLeftValue>

Source

pub const fn as_padding_top(&self) -> Option<&LayoutPaddingTopValue>

Source

pub const fn as_padding_bottom(&self) -> Option<&LayoutPaddingBottomValue>

Source

pub const fn as_padding_left(&self) -> Option<&LayoutPaddingLeftValue>

Source

pub const fn as_padding_right(&self) -> Option<&LayoutPaddingRightValue>

Source

pub const fn as_margin_top(&self) -> Option<&LayoutMarginTopValue>

Source

pub const fn as_margin_bottom(&self) -> Option<&LayoutMarginBottomValue>

Source

pub const fn as_margin_left(&self) -> Option<&LayoutMarginLeftValue>

Source

pub const fn as_margin_right(&self) -> Option<&LayoutMarginRightValue>

Source

pub const fn as_border_top_width(&self) -> Option<&LayoutBorderTopWidthValue>

Source

pub const fn as_border_left_width(&self) -> Option<&LayoutBorderLeftWidthValue>

Source

pub const fn as_border_right_width( &self, ) -> Option<&LayoutBorderRightWidthValue>

Source

pub const fn as_border_bottom_width( &self, ) -> Option<&LayoutBorderBottomWidthValue>

Source

pub const fn as_overflow_x(&self) -> Option<&LayoutOverflowValue>

Source

pub const fn as_overflow_y(&self) -> Option<&LayoutOverflowValue>

Source

pub const fn as_flex_direction(&self) -> Option<&LayoutFlexDirectionValue>

Source

pub const fn as_direction(&self) -> Option<&StyleDirectionValue>

Source

pub const fn as_user_select(&self) -> Option<&StyleUserSelectValue>

Source

pub const fn as_text_decoration(&self) -> Option<&StyleTextDecorationValue>

Source

pub const fn as_hyphens(&self) -> Option<&StyleHyphensValue>

Source

pub const fn as_white_space(&self) -> Option<&StyleWhiteSpaceValue>

Source

pub const fn as_flex_wrap(&self) -> Option<&LayoutFlexWrapValue>

Source

pub const fn as_flex_grow(&self) -> Option<&LayoutFlexGrowValue>

Source

pub const fn as_flex_shrink(&self) -> Option<&LayoutFlexShrinkValue>

Source

pub const fn as_justify_content(&self) -> Option<&LayoutJustifyContentValue>

Source

pub const fn as_align_items(&self) -> Option<&LayoutAlignItemsValue>

Source

pub const fn as_align_content(&self) -> Option<&LayoutAlignContentValue>

Source

pub const fn as_break_before(&self) -> Option<&PageBreakValue>

Source

pub const fn as_break_after(&self) -> Option<&PageBreakValue>

Source

pub const fn as_break_inside(&self) -> Option<&BreakInsideValue>

Source

pub const fn as_orphans(&self) -> Option<&OrphansValue>

Source

pub const fn as_widows(&self) -> Option<&WidowsValue>

Source

pub const fn as_box_decoration_break(&self) -> Option<&BoxDecorationBreakValue>

Source

pub const fn as_column_count(&self) -> Option<&ColumnCountValue>

Source

pub const fn as_column_width(&self) -> Option<&ColumnWidthValue>

Source

pub const fn as_column_span(&self) -> Option<&ColumnSpanValue>

Source

pub const fn as_column_fill(&self) -> Option<&ColumnFillValue>

Source

pub const fn as_column_rule_width(&self) -> Option<&ColumnRuleWidthValue>

Source

pub const fn as_column_rule_style(&self) -> Option<&ColumnRuleStyleValue>

Source

pub const fn as_column_rule_color(&self) -> Option<&ColumnRuleColorValue>

Source

pub const fn as_flow_into(&self) -> Option<&FlowIntoValue>

Source

pub const fn as_flow_from(&self) -> Option<&FlowFromValue>

Source

pub const fn as_shape_outside(&self) -> Option<&ShapeOutsideValue>

Source

pub const fn as_shape_inside(&self) -> Option<&ShapeInsideValue>

Source

pub const fn as_clip_path(&self) -> Option<&ClipPathValue>

Source

pub const fn as_shape_margin(&self) -> Option<&ShapeMarginValue>

Source

pub const fn as_shape_image_threshold( &self, ) -> Option<&ShapeImageThresholdValue>

Source

pub const fn as_content(&self) -> Option<&ContentValue>

Source

pub const fn as_counter_reset(&self) -> Option<&CounterResetValue>

Source

pub const fn as_counter_increment(&self) -> Option<&CounterIncrementValue>

Source

pub const fn as_list_style_type(&self) -> Option<&StyleListStyleTypeValue>

Source

pub const fn as_list_style_position( &self, ) -> Option<&StyleListStylePositionValue>

Source

pub const fn as_string_set(&self) -> Option<&StringSetValue>

Source

pub const fn as_table_layout(&self) -> Option<&LayoutTableLayoutValue>

Source

pub const fn as_border_collapse(&self) -> Option<&StyleBorderCollapseValue>

Source

pub const fn as_border_spacing(&self) -> Option<&LayoutBorderSpacingValue>

Source

pub const fn as_caption_side(&self) -> Option<&StyleCaptionSideValue>

Source

pub const fn as_empty_cells(&self) -> Option<&StyleEmptyCellsValue>

Source

pub const fn as_scrollbar_width(&self) -> Option<&LayoutScrollbarWidthValue>

Source

pub const fn as_scrollbar_color(&self) -> Option<&StyleScrollbarColorValue>

Source

pub fn is_initial(&self) -> bool

Source

pub const fn const_none(prop_type: CssPropertyType) -> Self

Source

pub const fn const_auto(prop_type: CssPropertyType) -> Self

Source

pub const fn const_initial(prop_type: CssPropertyType) -> Self

Source

pub const fn const_inherit(prop_type: CssPropertyType) -> Self

Source

pub const fn const_text_color(input: StyleTextColor) -> Self

Source

pub const fn const_font_size(input: StyleFontSize) -> Self

Source

pub const fn const_font_family(input: StyleFontFamilyVec) -> Self

Source

pub const fn const_text_align(input: StyleTextAlign) -> Self

Source

pub const fn const_vertical_align(input: StyleVerticalAlign) -> Self

Source

pub const fn const_letter_spacing(input: StyleLetterSpacing) -> Self

Source

pub const fn const_text_indent(input: StyleTextIndent) -> Self

Source

pub const fn const_line_height(input: StyleLineHeight) -> Self

Source

pub const fn const_word_spacing(input: StyleWordSpacing) -> Self

Source

pub const fn const_tab_width(input: StyleTabWidth) -> Self

Source

pub const fn const_cursor(input: StyleCursor) -> Self

Source

pub const fn const_display(input: LayoutDisplay) -> Self

Source

pub const fn const_float(input: LayoutFloat) -> Self

Source

pub const fn const_box_sizing(input: LayoutBoxSizing) -> Self

Source

pub const fn const_width(input: LayoutWidth) -> Self

Source

pub const fn const_height(input: LayoutHeight) -> Self

Source

pub const fn const_min_width(input: LayoutMinWidth) -> Self

Source

pub const fn const_min_height(input: LayoutMinHeight) -> Self

Source

pub const fn const_max_width(input: LayoutMaxWidth) -> Self

Source

pub const fn const_max_height(input: LayoutMaxHeight) -> Self

Source

pub const fn const_position(input: LayoutPosition) -> Self

Source

pub const fn const_top(input: LayoutTop) -> Self

Source

pub const fn const_right(input: LayoutRight) -> Self

Source

pub const fn const_left(input: LayoutLeft) -> Self

Source

pub const fn const_bottom(input: LayoutInsetBottom) -> Self

Source

pub const fn const_flex_wrap(input: LayoutFlexWrap) -> Self

Source

pub const fn const_flex_direction(input: LayoutFlexDirection) -> Self

Source

pub const fn const_flex_grow(input: LayoutFlexGrow) -> Self

Source

pub const fn const_flex_shrink(input: LayoutFlexShrink) -> Self

Source

pub const fn const_justify_content(input: LayoutJustifyContent) -> Self

Source

pub const fn const_align_items(input: LayoutAlignItems) -> Self

Source

pub const fn const_align_content(input: LayoutAlignContent) -> Self

Source

pub const fn const_background_content(input: StyleBackgroundContentVec) -> Self

Source

pub const fn const_background_position( input: StyleBackgroundPositionVec, ) -> Self

Source

pub const fn const_background_size(input: StyleBackgroundSizeVec) -> Self

Source

pub const fn const_background_repeat(input: StyleBackgroundRepeatVec) -> Self

Source

pub const fn const_overflow_x(input: LayoutOverflow) -> Self

Source

pub const fn const_overflow_y(input: LayoutOverflow) -> Self

Source

pub const fn const_padding_top(input: LayoutPaddingTop) -> Self

Source

pub const fn const_padding_left(input: LayoutPaddingLeft) -> Self

Source

pub const fn const_padding_right(input: LayoutPaddingRight) -> Self

Source

pub const fn const_padding_bottom(input: LayoutPaddingBottom) -> Self

Source

pub const fn const_margin_top(input: LayoutMarginTop) -> Self

Source

pub const fn const_margin_left(input: LayoutMarginLeft) -> Self

Source

pub const fn const_margin_right(input: LayoutMarginRight) -> Self

Source

pub const fn const_margin_bottom(input: LayoutMarginBottom) -> Self

Source

pub const fn const_border_top_left_radius( input: StyleBorderTopLeftRadius, ) -> Self

Source

pub const fn const_border_top_right_radius( input: StyleBorderTopRightRadius, ) -> Self

Source

pub const fn const_border_bottom_left_radius( input: StyleBorderBottomLeftRadius, ) -> Self

Source

pub const fn const_border_bottom_right_radius( input: StyleBorderBottomRightRadius, ) -> Self

Source

pub const fn const_border_top_color(input: StyleBorderTopColor) -> Self

Source

pub const fn const_border_right_color(input: StyleBorderRightColor) -> Self

Source

pub const fn const_border_left_color(input: StyleBorderLeftColor) -> Self

Source

pub const fn const_border_bottom_color(input: StyleBorderBottomColor) -> Self

Source

pub const fn const_border_top_style(input: StyleBorderTopStyle) -> Self

Source

pub const fn const_border_right_style(input: StyleBorderRightStyle) -> Self

Source

pub const fn const_border_left_style(input: StyleBorderLeftStyle) -> Self

Source

pub const fn const_border_bottom_style(input: StyleBorderBottomStyle) -> Self

Source

pub const fn const_border_top_width(input: LayoutBorderTopWidth) -> Self

Source

pub const fn const_border_right_width(input: LayoutBorderRightWidth) -> Self

Source

pub const fn const_border_left_width(input: LayoutBorderLeftWidth) -> Self

Source

pub const fn const_border_bottom_width(input: LayoutBorderBottomWidth) -> Self

Source

pub const fn const_box_shadow_left(input: StyleBoxShadow) -> Self

Source

pub const fn const_box_shadow_right(input: StyleBoxShadow) -> Self

Source

pub const fn const_box_shadow_top(input: StyleBoxShadow) -> Self

Source

pub const fn const_box_shadow_bottom(input: StyleBoxShadow) -> Self

Source

pub const fn const_opacity(input: StyleOpacity) -> Self

Source

pub const fn const_transform(input: StyleTransformVec) -> Self

Source

pub const fn const_transform_origin(input: StyleTransformOrigin) -> Self

Source

pub const fn const_perspective_origin(input: StylePerspectiveOrigin) -> Self

Source

pub const fn const_backface_visiblity(input: StyleBackfaceVisibility) -> Self

Source

pub const fn const_break_before(input: PageBreak) -> Self

Source

pub const fn const_break_after(input: PageBreak) -> Self

Source

pub const fn const_break_inside(input: BreakInside) -> Self

Source

pub const fn const_orphans(input: Orphans) -> Self

Source

pub const fn const_widows(input: Widows) -> Self

Source

pub const fn const_box_decoration_break(input: BoxDecorationBreak) -> Self

Source

pub const fn const_column_count(input: ColumnCount) -> Self

Source

pub const fn const_column_width(input: ColumnWidth) -> Self

Source

pub const fn const_column_span(input: ColumnSpan) -> Self

Source

pub const fn const_column_fill(input: ColumnFill) -> Self

Source

pub const fn const_column_rule_width(input: ColumnRuleWidth) -> Self

Source

pub const fn const_column_rule_style(input: ColumnRuleStyle) -> Self

Source

pub const fn const_column_rule_color(input: ColumnRuleColor) -> Self

Source

pub const fn const_flow_into(input: FlowInto) -> Self

Source

pub const fn const_flow_from(input: FlowFrom) -> Self

Source

pub const fn const_shape_outside(input: ShapeOutside) -> Self

Source

pub const fn const_shape_inside(input: ShapeInside) -> Self

Source

pub const fn const_clip_path(input: ClipPath) -> Self

Source

pub const fn const_shape_margin(input: ShapeMargin) -> Self

Source

pub const fn const_shape_image_threshold(input: ShapeImageThreshold) -> Self

Source

pub const fn const_content(input: Content) -> Self

Source

pub const fn const_counter_reset(input: CounterReset) -> Self

Source

pub const fn const_counter_increment(input: CounterIncrement) -> Self

Source

pub const fn const_list_style_type(input: StyleListStyleType) -> Self

Source

pub const fn const_list_style_position(input: StyleListStylePosition) -> Self

Source

pub const fn const_string_set(input: StringSet) -> Self

Source

pub const fn const_table_layout(input: LayoutTableLayout) -> Self

Source

pub const fn const_border_collapse(input: StyleBorderCollapse) -> Self

Source

pub const fn const_border_spacing(input: LayoutBorderSpacing) -> Self

Source

pub const fn const_caption_side(input: StyleCaptionSide) -> Self

Source

pub const fn const_empty_cells(input: StyleEmptyCells) -> Self

Trait Implementations§

Source§

impl Clone for CssProperty

Source§

fn clone(&self) -> CssProperty

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CssProperty

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<BoxDecorationBreak> for CssProperty

Source§

fn from(e: BoxDecorationBreak) -> Self

Converts to this type from the input type.
Source§

impl From<BreakInside> for CssProperty

Source§

fn from(e: BreakInside) -> Self

Converts to this type from the input type.
Source§

impl From<CaretAnimationDuration> for CssProperty

Source§

fn from(e: CaretAnimationDuration) -> Self

Converts to this type from the input type.
Source§

impl From<CaretColor> for CssProperty

Source§

fn from(e: CaretColor) -> Self

Converts to this type from the input type.
Source§

impl From<CaretWidth> for CssProperty

Source§

fn from(e: CaretWidth) -> Self

Converts to this type from the input type.
Source§

impl From<ClipPath> for CssProperty

Source§

fn from(e: ClipPath) -> Self

Converts to this type from the input type.
Source§

impl From<ColumnCount> for CssProperty

Source§

fn from(e: ColumnCount) -> Self

Converts to this type from the input type.
Source§

impl From<ColumnFill> for CssProperty

Source§

fn from(e: ColumnFill) -> Self

Converts to this type from the input type.
Source§

impl From<ColumnRuleColor> for CssProperty

Source§

fn from(e: ColumnRuleColor) -> Self

Converts to this type from the input type.
Source§

impl From<ColumnRuleStyle> for CssProperty

Source§

fn from(e: ColumnRuleStyle) -> Self

Converts to this type from the input type.
Source§

impl From<ColumnRuleWidth> for CssProperty

Source§

fn from(e: ColumnRuleWidth) -> Self

Converts to this type from the input type.
Source§

impl From<ColumnSpan> for CssProperty

Source§

fn from(e: ColumnSpan) -> Self

Converts to this type from the input type.
Source§

impl From<ColumnWidth> for CssProperty

Source§

fn from(e: ColumnWidth) -> Self

Converts to this type from the input type.
Source§

impl From<Content> for CssProperty

Source§

fn from(e: Content) -> Self

Converts to this type from the input type.
Source§

impl From<CounterIncrement> for CssProperty

Source§

fn from(e: CounterIncrement) -> Self

Converts to this type from the input type.
Source§

impl From<CounterReset> for CssProperty

Source§

fn from(e: CounterReset) -> Self

Converts to this type from the input type.
Source§

impl From<FlowFrom> for CssProperty

Source§

fn from(e: FlowFrom) -> Self

Converts to this type from the input type.
Source§

impl From<FlowInto> for CssProperty

Source§

fn from(e: FlowInto) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutAlignContent> for CssProperty

Source§

fn from(e: LayoutAlignContent) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutAlignItems> for CssProperty

Source§

fn from(e: LayoutAlignItems) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutAlignSelf> for CssProperty

Source§

fn from(e: LayoutAlignSelf) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutBorderBottomWidth> for CssProperty

Source§

fn from(e: LayoutBorderBottomWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutBorderLeftWidth> for CssProperty

Source§

fn from(e: LayoutBorderLeftWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutBorderRightWidth> for CssProperty

Source§

fn from(e: LayoutBorderRightWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutBorderSpacing> for CssProperty

Source§

fn from(e: LayoutBorderSpacing) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutBorderTopWidth> for CssProperty

Source§

fn from(e: LayoutBorderTopWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutBoxSizing> for CssProperty

Source§

fn from(e: LayoutBoxSizing) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutClear> for CssProperty

Source§

fn from(e: LayoutClear) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutColumnGap> for CssProperty

Source§

fn from(e: LayoutColumnGap) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutDisplay> for CssProperty

Source§

fn from(e: LayoutDisplay) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutFlexBasis> for CssProperty

Source§

fn from(e: LayoutFlexBasis) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutFlexDirection> for CssProperty

Source§

fn from(e: LayoutFlexDirection) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutFlexGrow> for CssProperty

Source§

fn from(e: LayoutFlexGrow) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutFlexShrink> for CssProperty

Source§

fn from(e: LayoutFlexShrink) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutFlexWrap> for CssProperty

Source§

fn from(e: LayoutFlexWrap) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutFloat> for CssProperty

Source§

fn from(e: LayoutFloat) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutGap> for CssProperty

Source§

fn from(e: LayoutGap) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutGridAutoFlow> for CssProperty

Source§

fn from(e: LayoutGridAutoFlow) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutHeight> for CssProperty

Source§

fn from(e: LayoutHeight) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutInsetBottom> for CssProperty

Source§

fn from(e: LayoutInsetBottom) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutJustifyContent> for CssProperty

Source§

fn from(e: LayoutJustifyContent) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutJustifyItems> for CssProperty

Source§

fn from(e: LayoutJustifyItems) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutJustifySelf> for CssProperty

Source§

fn from(e: LayoutJustifySelf) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutLeft> for CssProperty

Source§

fn from(e: LayoutLeft) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMarginBottom> for CssProperty

Source§

fn from(e: LayoutMarginBottom) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMarginLeft> for CssProperty

Source§

fn from(e: LayoutMarginLeft) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMarginRight> for CssProperty

Source§

fn from(e: LayoutMarginRight) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMarginTop> for CssProperty

Source§

fn from(e: LayoutMarginTop) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMaxHeight> for CssProperty

Source§

fn from(e: LayoutMaxHeight) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMaxWidth> for CssProperty

Source§

fn from(e: LayoutMaxWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMinHeight> for CssProperty

Source§

fn from(e: LayoutMinHeight) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutMinWidth> for CssProperty

Source§

fn from(e: LayoutMinWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutPaddingBottom> for CssProperty

Source§

fn from(e: LayoutPaddingBottom) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutPaddingInlineEnd> for CssProperty

Source§

fn from(e: LayoutPaddingInlineEnd) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutPaddingInlineStart> for CssProperty

Source§

fn from(e: LayoutPaddingInlineStart) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutPaddingLeft> for CssProperty

Source§

fn from(e: LayoutPaddingLeft) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutPaddingRight> for CssProperty

Source§

fn from(e: LayoutPaddingRight) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutPaddingTop> for CssProperty

Source§

fn from(e: LayoutPaddingTop) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutPosition> for CssProperty

Source§

fn from(e: LayoutPosition) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutRight> for CssProperty

Source§

fn from(e: LayoutRight) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutRowGap> for CssProperty

Source§

fn from(e: LayoutRowGap) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutScrollbarWidth> for CssProperty

Source§

fn from(e: LayoutScrollbarWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutTableLayout> for CssProperty

Source§

fn from(e: LayoutTableLayout) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutTextJustify> for CssProperty

Source§

fn from(e: LayoutTextJustify) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutTop> for CssProperty

Source§

fn from(e: LayoutTop) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutWidth> for CssProperty

Source§

fn from(e: LayoutWidth) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutWritingMode> for CssProperty

Source§

fn from(e: LayoutWritingMode) -> Self

Converts to this type from the input type.
Source§

impl From<Orphans> for CssProperty

Source§

fn from(e: Orphans) -> Self

Converts to this type from the input type.
Source§

impl From<PageBreak> for CssProperty

Source§

fn from(e: PageBreak) -> Self

Converts to this type from the input type.
Source§

impl From<ScrollbarStyle> for CssProperty

Source§

fn from(e: ScrollbarStyle) -> Self

Converts to this type from the input type.
Source§

impl From<SelectionBackgroundColor> for CssProperty

Source§

fn from(e: SelectionBackgroundColor) -> Self

Converts to this type from the input type.
Source§

impl From<SelectionColor> for CssProperty

Source§

fn from(e: SelectionColor) -> Self

Converts to this type from the input type.
Source§

impl From<SelectionRadius> for CssProperty

Source§

fn from(e: SelectionRadius) -> Self

Converts to this type from the input type.
Source§

impl From<ShapeImageThreshold> for CssProperty

Source§

fn from(e: ShapeImageThreshold) -> Self

Converts to this type from the input type.
Source§

impl From<ShapeInside> for CssProperty

Source§

fn from(e: ShapeInside) -> Self

Converts to this type from the input type.
Source§

impl From<ShapeMargin> for CssProperty

Source§

fn from(e: ShapeMargin) -> Self

Converts to this type from the input type.
Source§

impl From<ShapeOutside> for CssProperty

Source§

fn from(e: ShapeOutside) -> Self

Converts to this type from the input type.
Source§

impl From<StringSet> for CssProperty

Source§

fn from(e: StringSet) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBackfaceVisibility> for CssProperty

Source§

fn from(e: StyleBackfaceVisibility) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBackgroundContentVec> for CssProperty

Source§

fn from(e: StyleBackgroundContentVec) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBackgroundPositionVec> for CssProperty

Source§

fn from(e: StyleBackgroundPositionVec) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBackgroundRepeatVec> for CssProperty

Source§

fn from(e: StyleBackgroundRepeatVec) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBackgroundSizeVec> for CssProperty

Source§

fn from(e: StyleBackgroundSizeVec) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderBottomColor> for CssProperty

Source§

fn from(e: StyleBorderBottomColor) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderBottomLeftRadius> for CssProperty

Source§

fn from(e: StyleBorderBottomLeftRadius) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderBottomRightRadius> for CssProperty

Source§

fn from(e: StyleBorderBottomRightRadius) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderBottomStyle> for CssProperty

Source§

fn from(e: StyleBorderBottomStyle) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderCollapse> for CssProperty

Source§

fn from(e: StyleBorderCollapse) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderLeftColor> for CssProperty

Source§

fn from(e: StyleBorderLeftColor) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderLeftStyle> for CssProperty

Source§

fn from(e: StyleBorderLeftStyle) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderRightColor> for CssProperty

Source§

fn from(e: StyleBorderRightColor) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderRightStyle> for CssProperty

Source§

fn from(e: StyleBorderRightStyle) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderTopColor> for CssProperty

Source§

fn from(e: StyleBorderTopColor) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderTopLeftRadius> for CssProperty

Source§

fn from(e: StyleBorderTopLeftRadius) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderTopRightRadius> for CssProperty

Source§

fn from(e: StyleBorderTopRightRadius) -> Self

Converts to this type from the input type.
Source§

impl From<StyleBorderTopStyle> for CssProperty

Source§

fn from(e: StyleBorderTopStyle) -> Self

Converts to this type from the input type.
Source§

impl From<StyleCaptionSide> for CssProperty

Source§

fn from(e: StyleCaptionSide) -> Self

Converts to this type from the input type.
Source§

impl From<StyleCursor> for CssProperty

Source§

fn from(e: StyleCursor) -> Self

Converts to this type from the input type.
Source§

impl From<StyleDirection> for CssProperty

Source§

fn from(e: StyleDirection) -> Self

Converts to this type from the input type.
Source§

impl From<StyleEmptyCells> for CssProperty

Source§

fn from(e: StyleEmptyCells) -> Self

Converts to this type from the input type.
Source§

impl From<StyleExclusionMargin> for CssProperty

Source§

fn from(e: StyleExclusionMargin) -> Self

Converts to this type from the input type.
Source§

impl From<StyleFontFamilyVec> for CssProperty

Source§

fn from(e: StyleFontFamilyVec) -> Self

Converts to this type from the input type.
Source§

impl From<StyleFontSize> for CssProperty

Source§

fn from(e: StyleFontSize) -> Self

Converts to this type from the input type.
Source§

impl From<StyleHangingPunctuation> for CssProperty

Source§

fn from(e: StyleHangingPunctuation) -> Self

Converts to this type from the input type.
Source§

impl From<StyleHyphenationLanguage> for CssProperty

Source§

fn from(e: StyleHyphenationLanguage) -> Self

Converts to this type from the input type.
Source§

impl From<StyleHyphens> for CssProperty

Source§

fn from(e: StyleHyphens) -> Self

Converts to this type from the input type.
Source§

impl From<StyleInitialLetter> for CssProperty

Source§

fn from(e: StyleInitialLetter) -> Self

Converts to this type from the input type.
Source§

impl From<StyleLetterSpacing> for CssProperty

Source§

fn from(e: StyleLetterSpacing) -> Self

Converts to this type from the input type.
Source§

impl From<StyleLineClamp> for CssProperty

Source§

fn from(e: StyleLineClamp) -> Self

Converts to this type from the input type.
Source§

impl From<StyleLineHeight> for CssProperty

Source§

fn from(e: StyleLineHeight) -> Self

Converts to this type from the input type.
Source§

impl From<StyleListStylePosition> for CssProperty

Source§

fn from(e: StyleListStylePosition) -> Self

Converts to this type from the input type.
Source§

impl From<StyleListStyleType> for CssProperty

Source§

fn from(e: StyleListStyleType) -> Self

Converts to this type from the input type.
Source§

impl From<StyleMixBlendMode> for CssProperty

Source§

fn from(e: StyleMixBlendMode) -> Self

Converts to this type from the input type.
Source§

impl From<StyleOpacity> for CssProperty

Source§

fn from(e: StyleOpacity) -> Self

Converts to this type from the input type.
Source§

impl From<StylePerspectiveOrigin> for CssProperty

Source§

fn from(e: StylePerspectiveOrigin) -> Self

Converts to this type from the input type.
Source§

impl From<StyleScrollbarColor> for CssProperty

Source§

fn from(e: StyleScrollbarColor) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTabWidth> for CssProperty

Source§

fn from(e: StyleTabWidth) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTextAlign> for CssProperty

Source§

fn from(e: StyleTextAlign) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTextColor> for CssProperty

Source§

fn from(e: StyleTextColor) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTextCombineUpright> for CssProperty

Source§

fn from(e: StyleTextCombineUpright) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTextDecoration> for CssProperty

Source§

fn from(value: StyleTextDecoration) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTextIndent> for CssProperty

Source§

fn from(e: StyleTextIndent) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTransformOrigin> for CssProperty

Source§

fn from(e: StyleTransformOrigin) -> Self

Converts to this type from the input type.
Source§

impl From<StyleTransformVec> for CssProperty

Source§

fn from(e: StyleTransformVec) -> Self

Converts to this type from the input type.
Source§

impl From<StyleUserSelect> for CssProperty

Source§

fn from(value: StyleUserSelect) -> Self

Converts to this type from the input type.
Source§

impl From<StyleVerticalAlign> for CssProperty

Source§

fn from(e: StyleVerticalAlign) -> Self

Converts to this type from the input type.
Source§

impl From<StyleVisibility> for CssProperty

Source§

fn from(e: StyleVisibility) -> Self

Converts to this type from the input type.
Source§

impl From<StyleWhiteSpace> for CssProperty

Source§

fn from(e: StyleWhiteSpace) -> Self

Converts to this type from the input type.
Source§

impl From<StyleWordSpacing> for CssProperty

Source§

fn from(e: StyleWordSpacing) -> Self

Converts to this type from the input type.
Source§

impl From<Widows> for CssProperty

Source§

fn from(e: Widows) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<CssProperty> for CssPropertyVec

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoIterator<Item = CssProperty>,

Creates a value from an iterator. Read more
Source§

impl Hash for CssProperty

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for CssProperty

Source§

fn cmp(&self, other: &CssProperty) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for CssProperty

Source§

fn eq(&self, other: &CssProperty) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for CssProperty

Source§

fn partial_cmp(&self, other: &CssProperty) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Eq for CssProperty

Source§

impl StructuralPartialEq for CssProperty

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GetHash for T
where T: Hash,

Source§

fn get_hash(&self) -> u64

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.