pub enum Property<'i> {
Show 348 variants
BackgroundColor(CssColor),
BackgroundImage(SmallVec<[Image<'i>; 1]>),
BackgroundPositionX(SmallVec<[HorizontalPosition; 1]>),
BackgroundPositionY(SmallVec<[VerticalPosition; 1]>),
BackgroundPosition(SmallVec<[BackgroundPosition; 1]>),
BackgroundSize(SmallVec<[BackgroundSize; 1]>),
BackgroundRepeat(SmallVec<[BackgroundRepeat; 1]>),
BackgroundAttachment(SmallVec<[BackgroundAttachment; 1]>),
BackgroundClip(SmallVec<[BackgroundClip; 1]>, VendorPrefix),
BackgroundOrigin(SmallVec<[BackgroundOrigin; 1]>),
Background(SmallVec<[Background<'i>; 1]>),
BoxShadow(SmallVec<[BoxShadow; 1]>, VendorPrefix),
Opacity(AlphaValue),
Color(CssColor),
Display(Display),
Visibility(Visibility),
Width(Size),
Height(Size),
MinWidth(Size),
MinHeight(Size),
MaxWidth(MaxSize),
MaxHeight(MaxSize),
BlockSize(Size),
InlineSize(Size),
MinBlockSize(Size),
MinInlineSize(Size),
MaxBlockSize(MaxSize),
MaxInlineSize(MaxSize),
BoxSizing(BoxSizing, VendorPrefix),
AspectRatio(AspectRatio),
Overflow(Overflow),
OverflowX(OverflowKeyword),
OverflowY(OverflowKeyword),
TextOverflow(TextOverflow, VendorPrefix),
Position(Position),
Top(LengthPercentageOrAuto),
Bottom(LengthPercentageOrAuto),
Left(LengthPercentageOrAuto),
Right(LengthPercentageOrAuto),
InsetBlockStart(LengthPercentageOrAuto),
InsetBlockEnd(LengthPercentageOrAuto),
InsetInlineStart(LengthPercentageOrAuto),
InsetInlineEnd(LengthPercentageOrAuto),
InsetBlock(InsetBlock),
InsetInline(InsetInline),
Inset(Inset),
BorderSpacing(Size2D<Length>),
BorderTopColor(CssColor),
BorderBottomColor(CssColor),
BorderLeftColor(CssColor),
BorderRightColor(CssColor),
BorderBlockStartColor(CssColor),
BorderBlockEndColor(CssColor),
BorderInlineStartColor(CssColor),
BorderInlineEndColor(CssColor),
BorderTopStyle(LineStyle),
BorderBottomStyle(LineStyle),
BorderLeftStyle(LineStyle),
BorderRightStyle(LineStyle),
BorderBlockStartStyle(LineStyle),
BorderBlockEndStyle(LineStyle),
BorderInlineStartStyle(LineStyle),
BorderInlineEndStyle(LineStyle),
BorderTopWidth(BorderSideWidth),
BorderBottomWidth(BorderSideWidth),
BorderLeftWidth(BorderSideWidth),
BorderRightWidth(BorderSideWidth),
BorderBlockStartWidth(BorderSideWidth),
BorderBlockEndWidth(BorderSideWidth),
BorderInlineStartWidth(BorderSideWidth),
BorderInlineEndWidth(BorderSideWidth),
BorderTopLeftRadius(Size2D<LengthPercentage>, VendorPrefix),
BorderTopRightRadius(Size2D<LengthPercentage>, VendorPrefix),
BorderBottomLeftRadius(Size2D<LengthPercentage>, VendorPrefix),
BorderBottomRightRadius(Size2D<LengthPercentage>, VendorPrefix),
BorderStartStartRadius(Size2D<LengthPercentage>),
BorderStartEndRadius(Size2D<LengthPercentage>),
BorderEndStartRadius(Size2D<LengthPercentage>),
BorderEndEndRadius(Size2D<LengthPercentage>),
BorderRadius(BorderRadius, VendorPrefix),
BorderImageSource(Image<'i>),
BorderImageOutset(Rect<LengthOrNumber>),
BorderImageRepeat(BorderImageRepeat),
BorderImageWidth(Rect<BorderImageSideWidth>),
BorderImageSlice(BorderImageSlice),
BorderImage(BorderImage<'i>, VendorPrefix),
BorderColor(BorderColor),
BorderStyle(BorderStyle),
BorderWidth(BorderWidth),
BorderBlockColor(BorderBlockColor),
BorderBlockStyle(BorderBlockStyle),
BorderBlockWidth(BorderBlockWidth),
BorderInlineColor(BorderInlineColor),
BorderInlineStyle(BorderInlineStyle),
BorderInlineWidth(BorderInlineWidth),
Border(Border),
BorderTop(BorderTop),
BorderBottom(BorderBottom),
BorderLeft(BorderLeft),
BorderRight(BorderRight),
BorderBlock(BorderBlock),
BorderBlockStart(BorderBlockStart),
BorderBlockEnd(BorderBlockEnd),
BorderInline(BorderInline),
BorderInlineStart(BorderInlineStart),
BorderInlineEnd(BorderInlineEnd),
Outline(Outline),
OutlineColor(CssColor),
OutlineStyle(OutlineStyle),
OutlineWidth(BorderSideWidth),
FlexDirection(FlexDirection, VendorPrefix),
FlexWrap(FlexWrap, VendorPrefix),
FlexFlow(FlexFlow, VendorPrefix),
FlexGrow(CSSNumber, VendorPrefix),
FlexShrink(CSSNumber, VendorPrefix),
FlexBasis(LengthPercentageOrAuto, VendorPrefix),
Flex(Flex, VendorPrefix),
Order(CSSInteger, VendorPrefix),
AlignContent(AlignContent, VendorPrefix),
JustifyContent(JustifyContent, VendorPrefix),
PlaceContent(PlaceContent),
AlignSelf(AlignSelf, VendorPrefix),
JustifySelf(JustifySelf),
PlaceSelf(PlaceSelf),
AlignItems(AlignItems, VendorPrefix),
JustifyItems(JustifyItems),
PlaceItems(PlaceItems),
RowGap(GapValue),
ColumnGap(GapValue),
Gap(Gap),
BoxOrient(BoxOrient, VendorPrefix),
BoxDirection(BoxDirection, VendorPrefix),
BoxOrdinalGroup(CSSInteger, VendorPrefix),
BoxAlign(BoxAlign, VendorPrefix),
BoxFlex(CSSNumber, VendorPrefix),
BoxFlexGroup(CSSInteger, VendorPrefix),
BoxPack(BoxPack, VendorPrefix),
BoxLines(BoxLines, VendorPrefix),
FlexPack(FlexPack, VendorPrefix),
FlexOrder(CSSInteger, VendorPrefix),
FlexAlign(BoxAlign, VendorPrefix),
FlexItemAlign(FlexItemAlign, VendorPrefix),
FlexLinePack(FlexLinePack, VendorPrefix),
FlexPositive(CSSNumber, VendorPrefix),
FlexNegative(CSSNumber, VendorPrefix),
FlexPreferredSize(LengthPercentageOrAuto, VendorPrefix),
GridTemplateColumns(TrackSizing<'i>),
GridTemplateRows(TrackSizing<'i>),
GridAutoColumns(TrackSizeList),
GridAutoRows(TrackSizeList),
GridAutoFlow(GridAutoFlow),
GridTemplateAreas(GridTemplateAreas),
GridTemplate(GridTemplate<'i>),
Grid(Grid<'i>),
GridRowStart(GridLine<'i>),
GridRowEnd(GridLine<'i>),
GridColumnStart(GridLine<'i>),
GridColumnEnd(GridLine<'i>),
GridRow(GridRow<'i>),
GridColumn(GridColumn<'i>),
GridArea(GridArea<'i>),
MarginTop(LengthPercentageOrAuto),
MarginBottom(LengthPercentageOrAuto),
MarginLeft(LengthPercentageOrAuto),
MarginRight(LengthPercentageOrAuto),
MarginBlockStart(LengthPercentageOrAuto),
MarginBlockEnd(LengthPercentageOrAuto),
MarginInlineStart(LengthPercentageOrAuto),
MarginInlineEnd(LengthPercentageOrAuto),
MarginBlock(MarginBlock),
MarginInline(MarginInline),
Margin(Margin),
PaddingTop(LengthPercentageOrAuto),
PaddingBottom(LengthPercentageOrAuto),
PaddingLeft(LengthPercentageOrAuto),
PaddingRight(LengthPercentageOrAuto),
PaddingBlockStart(LengthPercentageOrAuto),
PaddingBlockEnd(LengthPercentageOrAuto),
PaddingInlineStart(LengthPercentageOrAuto),
PaddingInlineEnd(LengthPercentageOrAuto),
PaddingBlock(PaddingBlock),
PaddingInline(PaddingInline),
Padding(Padding),
ScrollMarginTop(LengthPercentageOrAuto),
ScrollMarginBottom(LengthPercentageOrAuto),
ScrollMarginLeft(LengthPercentageOrAuto),
ScrollMarginRight(LengthPercentageOrAuto),
ScrollMarginBlockStart(LengthPercentageOrAuto),
ScrollMarginBlockEnd(LengthPercentageOrAuto),
ScrollMarginInlineStart(LengthPercentageOrAuto),
ScrollMarginInlineEnd(LengthPercentageOrAuto),
ScrollMarginBlock(ScrollMarginBlock),
ScrollMarginInline(ScrollMarginInline),
ScrollMargin(ScrollMargin),
ScrollPaddingTop(LengthPercentageOrAuto),
ScrollPaddingBottom(LengthPercentageOrAuto),
ScrollPaddingLeft(LengthPercentageOrAuto),
ScrollPaddingRight(LengthPercentageOrAuto),
ScrollPaddingBlockStart(LengthPercentageOrAuto),
ScrollPaddingBlockEnd(LengthPercentageOrAuto),
ScrollPaddingInlineStart(LengthPercentageOrAuto),
ScrollPaddingInlineEnd(LengthPercentageOrAuto),
ScrollPaddingBlock(ScrollPaddingBlock),
ScrollPaddingInline(ScrollPaddingInline),
ScrollPadding(ScrollPadding),
FontWeight(FontWeight),
FontSize(FontSize),
FontStretch(FontStretch),
FontFamily(Vec<FontFamily<'i>>),
FontStyle(FontStyle),
FontVariantCaps(FontVariantCaps),
LineHeight(LineHeight),
Font(Font<'i>),
VerticalAlign(VerticalAlign),
FontPalette(DashedIdentReference<'i>),
TransitionProperty(SmallVec<[PropertyId<'i>; 1]>, VendorPrefix),
TransitionDuration(SmallVec<[Time; 1]>, VendorPrefix),
TransitionDelay(SmallVec<[Time; 1]>, VendorPrefix),
TransitionTimingFunction(SmallVec<[EasingFunction; 1]>, VendorPrefix),
Transition(SmallVec<[Transition<'i>; 1]>, VendorPrefix),
AnimationName(AnimationNameList<'i>, VendorPrefix),
AnimationDuration(SmallVec<[Time; 1]>, VendorPrefix),
AnimationTimingFunction(SmallVec<[EasingFunction; 1]>, VendorPrefix),
AnimationIterationCount(SmallVec<[AnimationIterationCount; 1]>, VendorPrefix),
AnimationDirection(SmallVec<[AnimationDirection; 1]>, VendorPrefix),
AnimationPlayState(SmallVec<[AnimationPlayState; 1]>, VendorPrefix),
AnimationDelay(SmallVec<[Time; 1]>, VendorPrefix),
AnimationFillMode(SmallVec<[AnimationFillMode; 1]>, VendorPrefix),
AnimationComposition(SmallVec<[AnimationComposition; 1]>),
AnimationTimeline(SmallVec<[AnimationTimeline<'i>; 1]>),
AnimationRangeStart(SmallVec<[AnimationRangeStart; 1]>),
AnimationRangeEnd(SmallVec<[AnimationRangeEnd; 1]>),
AnimationRange(SmallVec<[AnimationRange; 1]>),
Animation(AnimationList<'i>, VendorPrefix),
Transform(TransformList, VendorPrefix),
TransformOrigin(Position, VendorPrefix),
TransformStyle(TransformStyle, VendorPrefix),
TransformBox(TransformBox),
BackfaceVisibility(BackfaceVisibility, VendorPrefix),
Perspective(Perspective, VendorPrefix),
PerspectiveOrigin(Position, VendorPrefix),
Translate(Translate),
Rotate(Rotate),
Scale(Scale),
TextTransform(TextTransform),
WhiteSpace(WhiteSpace),
TabSize(LengthOrNumber, VendorPrefix),
WordBreak(WordBreak),
LineBreak(LineBreak),
Hyphens(Hyphens, VendorPrefix),
OverflowWrap(OverflowWrap),
WordWrap(OverflowWrap),
TextAlign(TextAlign),
TextAlignLast(TextAlignLast, VendorPrefix),
TextJustify(TextJustify),
WordSpacing(Spacing),
LetterSpacing(Spacing),
TextIndent(TextIndent),
TextDecorationLine(TextDecorationLine, VendorPrefix),
TextDecorationStyle(TextDecorationStyle, VendorPrefix),
TextDecorationColor(CssColor, VendorPrefix),
TextDecorationThickness(TextDecorationThickness),
TextDecoration(TextDecoration, VendorPrefix),
TextDecorationSkipInk(TextDecorationSkipInk, VendorPrefix),
TextEmphasisStyle(TextEmphasisStyle<'i>, VendorPrefix),
TextEmphasisColor(CssColor, VendorPrefix),
TextEmphasis(TextEmphasis<'i>, VendorPrefix),
TextEmphasisPosition(TextEmphasisPosition, VendorPrefix),
TextShadow(SmallVec<[TextShadow; 1]>),
TextSizeAdjust(TextSizeAdjust, VendorPrefix),
Direction(Direction),
UnicodeBidi(UnicodeBidi),
BoxDecorationBreak(BoxDecorationBreak, VendorPrefix),
Resize(Resize),
Cursor(Cursor<'i>),
CaretColor(ColorOrAuto),
CaretShape(CaretShape),
Caret(Caret),
UserSelect(UserSelect, VendorPrefix),
AccentColor(ColorOrAuto),
Appearance(Appearance<'i>, VendorPrefix),
ListStyleType(ListStyleType<'i>),
ListStyleImage(Image<'i>),
ListStylePosition(ListStylePosition),
ListStyle(ListStyle<'i>),
MarkerSide(MarkerSide),
Composes(Composes<'i>),
Fill(SVGPaint<'i>),
FillRule(FillRule),
FillOpacity(AlphaValue),
Stroke(SVGPaint<'i>),
StrokeOpacity(AlphaValue),
StrokeWidth(LengthPercentage),
StrokeLinecap(StrokeLinecap),
StrokeLinejoin(StrokeLinejoin),
StrokeMiterlimit(CSSNumber),
StrokeDasharray(StrokeDasharray),
StrokeDashoffset(LengthPercentage),
MarkerStart(Marker<'i>),
MarkerMid(Marker<'i>),
MarkerEnd(Marker<'i>),
Marker(Marker<'i>),
ColorInterpolation(ColorInterpolation),
ColorInterpolationFilters(ColorInterpolation),
ColorRendering(ColorRendering),
ShapeRendering(ShapeRendering),
TextRendering(TextRendering),
ImageRendering(ImageRendering),
ClipPath(ClipPath<'i>, VendorPrefix),
ClipRule(FillRule),
MaskImage(SmallVec<[Image<'i>; 1]>, VendorPrefix),
MaskMode(SmallVec<[MaskMode; 1]>),
MaskRepeat(SmallVec<[BackgroundRepeat; 1]>, VendorPrefix),
MaskPositionX(SmallVec<[HorizontalPosition; 1]>),
MaskPositionY(SmallVec<[VerticalPosition; 1]>),
MaskPosition(SmallVec<[Position; 1]>, VendorPrefix),
MaskClip(SmallVec<[MaskClip; 1]>, VendorPrefix),
MaskOrigin(SmallVec<[GeometryBox; 1]>, VendorPrefix),
MaskSize(SmallVec<[BackgroundSize; 1]>, VendorPrefix),
MaskComposite(SmallVec<[MaskComposite; 1]>),
MaskType(MaskType),
Mask(SmallVec<[Mask<'i>; 1]>, VendorPrefix),
MaskBorderSource(Image<'i>),
MaskBorderMode(MaskBorderMode),
MaskBorderSlice(BorderImageSlice),
MaskBorderWidth(Rect<BorderImageSideWidth>),
MaskBorderOutset(Rect<LengthOrNumber>),
MaskBorderRepeat(BorderImageRepeat),
MaskBorder(MaskBorder<'i>),
WebKitMaskComposite(SmallVec<[WebKitMaskComposite; 1]>),
WebKitMaskSourceType(SmallVec<[WebKitMaskSourceType; 1]>, VendorPrefix),
WebKitMaskBoxImage(BorderImage<'i>, VendorPrefix),
WebKitMaskBoxImageSource(Image<'i>, VendorPrefix),
WebKitMaskBoxImageSlice(BorderImageSlice, VendorPrefix),
WebKitMaskBoxImageWidth(Rect<BorderImageSideWidth>, VendorPrefix),
WebKitMaskBoxImageOutset(Rect<LengthOrNumber>, VendorPrefix),
WebKitMaskBoxImageRepeat(BorderImageRepeat, VendorPrefix),
Filter(FilterList<'i>, VendorPrefix),
BackdropFilter(FilterList<'i>, VendorPrefix),
ZIndex(ZIndex),
ContainerType(ContainerType),
ContainerName(ContainerNameList<'i>),
Container(Container<'i>),
ViewTransitionName(CustomIdent<'i>),
ColorScheme(ColorScheme),
All(CSSWideKeyword),
Unparsed(UnparsedProperty<'i>),
Custom(CustomProperty<'i>),
}Expand description
A CSS property.
Variants§
BackgroundColor(CssColor)
The background-color property.
BackgroundImage(SmallVec<[Image<'i>; 1]>)
The background-image property.
BackgroundPositionX(SmallVec<[HorizontalPosition; 1]>)
The background-position-x property.
BackgroundPositionY(SmallVec<[VerticalPosition; 1]>)
The background-position-y property.
BackgroundPosition(SmallVec<[BackgroundPosition; 1]>)
The background-position property.
BackgroundSize(SmallVec<[BackgroundSize; 1]>)
The background-size property.
BackgroundRepeat(SmallVec<[BackgroundRepeat; 1]>)
The background-repeat property.
BackgroundAttachment(SmallVec<[BackgroundAttachment; 1]>)
The background-attachment property.
BackgroundClip(SmallVec<[BackgroundClip; 1]>, VendorPrefix)
The background-clip property.
BackgroundOrigin(SmallVec<[BackgroundOrigin; 1]>)
The background-origin property.
Background(SmallVec<[Background<'i>; 1]>)
The background property.
BoxShadow(SmallVec<[BoxShadow; 1]>, VendorPrefix)
The box-shadow property.
Opacity(AlphaValue)
The opacity property.
Color(CssColor)
The color property.
Display(Display)
The display property.
Visibility(Visibility)
The visibility property.
Width(Size)
The width property.
Height(Size)
The height property.
MinWidth(Size)
The min-width property.
MinHeight(Size)
The min-height property.
MaxWidth(MaxSize)
The max-width property.
MaxHeight(MaxSize)
The max-height property.
BlockSize(Size)
The block-size property.
InlineSize(Size)
The inline-size property.
MinBlockSize(Size)
The min-block-size property.
MinInlineSize(Size)
The min-inline-size property.
MaxBlockSize(MaxSize)
The max-block-size property.
MaxInlineSize(MaxSize)
The max-inline-size property.
BoxSizing(BoxSizing, VendorPrefix)
The box-sizing property.
AspectRatio(AspectRatio)
The aspect-ratio property.
Overflow(Overflow)
The overflow property.
OverflowX(OverflowKeyword)
The overflow-x property.
OverflowY(OverflowKeyword)
The overflow-y property.
TextOverflow(TextOverflow, VendorPrefix)
The text-overflow property.
Position(Position)
The position property.
Top(LengthPercentageOrAuto)
The top property.
Bottom(LengthPercentageOrAuto)
The bottom property.
Left(LengthPercentageOrAuto)
The left property.
Right(LengthPercentageOrAuto)
The right property.
InsetBlockStart(LengthPercentageOrAuto)
The inset-block-start property.
InsetBlockEnd(LengthPercentageOrAuto)
The inset-block-end property.
InsetInlineStart(LengthPercentageOrAuto)
The inset-inline-start property.
InsetInlineEnd(LengthPercentageOrAuto)
The inset-inline-end property.
InsetBlock(InsetBlock)
The inset-block property.
InsetInline(InsetInline)
The inset-inline property.
Inset(Inset)
The inset property.
BorderSpacing(Size2D<Length>)
The border-spacing property.
BorderTopColor(CssColor)
The border-top-color property.
BorderBottomColor(CssColor)
The border-bottom-color property.
BorderLeftColor(CssColor)
The border-left-color property.
BorderRightColor(CssColor)
The border-right-color property.
BorderBlockStartColor(CssColor)
The border-block-start-color property.
BorderBlockEndColor(CssColor)
The border-block-end-color property.
BorderInlineStartColor(CssColor)
The border-inline-start-color property.
BorderInlineEndColor(CssColor)
The border-inline-end-color property.
BorderTopStyle(LineStyle)
The border-top-style property.
BorderBottomStyle(LineStyle)
The border-bottom-style property.
BorderLeftStyle(LineStyle)
The border-left-style property.
BorderRightStyle(LineStyle)
The border-right-style property.
BorderBlockStartStyle(LineStyle)
The border-block-start-style property.
BorderBlockEndStyle(LineStyle)
The border-block-end-style property.
BorderInlineStartStyle(LineStyle)
The border-inline-start-style property.
BorderInlineEndStyle(LineStyle)
The border-inline-end-style property.
BorderTopWidth(BorderSideWidth)
The border-top-width property.
BorderBottomWidth(BorderSideWidth)
The border-bottom-width property.
BorderLeftWidth(BorderSideWidth)
The border-left-width property.
BorderRightWidth(BorderSideWidth)
The border-right-width property.
BorderBlockStartWidth(BorderSideWidth)
The border-block-start-width property.
BorderBlockEndWidth(BorderSideWidth)
The border-block-end-width property.
BorderInlineStartWidth(BorderSideWidth)
The border-inline-start-width property.
BorderInlineEndWidth(BorderSideWidth)
The border-inline-end-width property.
BorderTopLeftRadius(Size2D<LengthPercentage>, VendorPrefix)
The border-top-left-radius property.
BorderTopRightRadius(Size2D<LengthPercentage>, VendorPrefix)
The border-top-right-radius property.
BorderBottomLeftRadius(Size2D<LengthPercentage>, VendorPrefix)
The border-bottom-left-radius property.
BorderBottomRightRadius(Size2D<LengthPercentage>, VendorPrefix)
The border-bottom-right-radius property.
BorderStartStartRadius(Size2D<LengthPercentage>)
The border-start-start-radius property.
BorderStartEndRadius(Size2D<LengthPercentage>)
The border-start-end-radius property.
BorderEndStartRadius(Size2D<LengthPercentage>)
The border-end-start-radius property.
BorderEndEndRadius(Size2D<LengthPercentage>)
The border-end-end-radius property.
BorderRadius(BorderRadius, VendorPrefix)
The border-radius property.
BorderImageSource(Image<'i>)
The border-image-source property.
BorderImageOutset(Rect<LengthOrNumber>)
The border-image-outset property.
BorderImageRepeat(BorderImageRepeat)
The border-image-repeat property.
BorderImageWidth(Rect<BorderImageSideWidth>)
The border-image-width property.
BorderImageSlice(BorderImageSlice)
The border-image-slice property.
BorderImage(BorderImage<'i>, VendorPrefix)
The border-image property.
BorderColor(BorderColor)
The border-color property.
BorderStyle(BorderStyle)
The border-style property.
BorderWidth(BorderWidth)
The border-width property.
BorderBlockColor(BorderBlockColor)
The border-block-color property.
BorderBlockStyle(BorderBlockStyle)
The border-block-style property.
BorderBlockWidth(BorderBlockWidth)
The border-block-width property.
BorderInlineColor(BorderInlineColor)
The border-inline-color property.
BorderInlineStyle(BorderInlineStyle)
The border-inline-style property.
BorderInlineWidth(BorderInlineWidth)
The border-inline-width property.
Border(Border)
The border property.
BorderTop(BorderTop)
The border-top property.
BorderBottom(BorderBottom)
The border-bottom property.
BorderLeft(BorderLeft)
The border-left property.
BorderRight(BorderRight)
The border-right property.
BorderBlock(BorderBlock)
The border-block property.
BorderBlockStart(BorderBlockStart)
The border-block-start property.
BorderBlockEnd(BorderBlockEnd)
The border-block-end property.
BorderInline(BorderInline)
The border-inline property.
BorderInlineStart(BorderInlineStart)
The border-inline-start property.
BorderInlineEnd(BorderInlineEnd)
The border-inline-end property.
Outline(Outline)
The outline property.
OutlineColor(CssColor)
The outline-color property.
OutlineStyle(OutlineStyle)
The outline-style property.
OutlineWidth(BorderSideWidth)
The outline-width property.
FlexDirection(FlexDirection, VendorPrefix)
The flex-direction property.
FlexWrap(FlexWrap, VendorPrefix)
The flex-wrap property.
FlexFlow(FlexFlow, VendorPrefix)
The flex-flow property.
FlexGrow(CSSNumber, VendorPrefix)
The flex-grow property.
FlexShrink(CSSNumber, VendorPrefix)
The flex-shrink property.
FlexBasis(LengthPercentageOrAuto, VendorPrefix)
The flex-basis property.
Flex(Flex, VendorPrefix)
The flex property.
Order(CSSInteger, VendorPrefix)
The order property.
AlignContent(AlignContent, VendorPrefix)
The align-content property.
JustifyContent(JustifyContent, VendorPrefix)
The justify-content property.
PlaceContent(PlaceContent)
The place-content property.
AlignSelf(AlignSelf, VendorPrefix)
The align-self property.
JustifySelf(JustifySelf)
The justify-self property.
PlaceSelf(PlaceSelf)
The place-self property.
AlignItems(AlignItems, VendorPrefix)
The align-items property.
JustifyItems(JustifyItems)
The justify-items property.
PlaceItems(PlaceItems)
The place-items property.
RowGap(GapValue)
The row-gap property.
ColumnGap(GapValue)
The column-gap property.
Gap(Gap)
The gap property.
BoxOrient(BoxOrient, VendorPrefix)
The box-orient property.
BoxDirection(BoxDirection, VendorPrefix)
The box-direction property.
BoxOrdinalGroup(CSSInteger, VendorPrefix)
The box-ordinal-group property.
BoxAlign(BoxAlign, VendorPrefix)
The box-align property.
BoxFlex(CSSNumber, VendorPrefix)
The box-flex property.
BoxFlexGroup(CSSInteger, VendorPrefix)
The box-flex-group property.
BoxPack(BoxPack, VendorPrefix)
The box-pack property.
BoxLines(BoxLines, VendorPrefix)
The box-lines property.
FlexPack(FlexPack, VendorPrefix)
The flex-pack property.
FlexOrder(CSSInteger, VendorPrefix)
The flex-order property.
FlexAlign(BoxAlign, VendorPrefix)
The flex-align property.
FlexItemAlign(FlexItemAlign, VendorPrefix)
The flex-item-align property.
FlexLinePack(FlexLinePack, VendorPrefix)
The flex-line-pack property.
FlexPositive(CSSNumber, VendorPrefix)
The flex-positive property.
FlexNegative(CSSNumber, VendorPrefix)
The flex-negative property.
FlexPreferredSize(LengthPercentageOrAuto, VendorPrefix)
The flex-preferred-size property.
GridTemplateColumns(TrackSizing<'i>)
grid only.The grid-template-columns property.
GridTemplateRows(TrackSizing<'i>)
grid only.The grid-template-rows property.
GridAutoColumns(TrackSizeList)
grid only.The grid-auto-columns property.
GridAutoRows(TrackSizeList)
grid only.The grid-auto-rows property.
GridAutoFlow(GridAutoFlow)
grid only.The grid-auto-flow property.
GridTemplateAreas(GridTemplateAreas)
grid only.The grid-template-areas property.
GridTemplate(GridTemplate<'i>)
grid only.The grid-template property.
Grid(Grid<'i>)
grid only.The grid property.
GridRowStart(GridLine<'i>)
grid only.The grid-row-start property.
GridRowEnd(GridLine<'i>)
grid only.The grid-row-end property.
GridColumnStart(GridLine<'i>)
grid only.The grid-column-start property.
GridColumnEnd(GridLine<'i>)
grid only.The grid-column-end property.
GridRow(GridRow<'i>)
grid only.The grid-row property.
GridColumn(GridColumn<'i>)
grid only.The grid-column property.
GridArea(GridArea<'i>)
grid only.The grid-area property.
MarginTop(LengthPercentageOrAuto)
The margin-top property.
MarginBottom(LengthPercentageOrAuto)
The margin-bottom property.
MarginLeft(LengthPercentageOrAuto)
The margin-left property.
MarginRight(LengthPercentageOrAuto)
The margin-right property.
MarginBlockStart(LengthPercentageOrAuto)
The margin-block-start property.
MarginBlockEnd(LengthPercentageOrAuto)
The margin-block-end property.
MarginInlineStart(LengthPercentageOrAuto)
The margin-inline-start property.
MarginInlineEnd(LengthPercentageOrAuto)
The margin-inline-end property.
MarginBlock(MarginBlock)
The margin-block property.
MarginInline(MarginInline)
The margin-inline property.
Margin(Margin)
The margin property.
PaddingTop(LengthPercentageOrAuto)
The padding-top property.
PaddingBottom(LengthPercentageOrAuto)
The padding-bottom property.
PaddingLeft(LengthPercentageOrAuto)
The padding-left property.
PaddingRight(LengthPercentageOrAuto)
The padding-right property.
PaddingBlockStart(LengthPercentageOrAuto)
The padding-block-start property.
PaddingBlockEnd(LengthPercentageOrAuto)
The padding-block-end property.
PaddingInlineStart(LengthPercentageOrAuto)
The padding-inline-start property.
PaddingInlineEnd(LengthPercentageOrAuto)
The padding-inline-end property.
PaddingBlock(PaddingBlock)
The padding-block property.
PaddingInline(PaddingInline)
The padding-inline property.
Padding(Padding)
The padding property.
ScrollMarginTop(LengthPercentageOrAuto)
The scroll-margin-top property.
ScrollMarginBottom(LengthPercentageOrAuto)
The scroll-margin-bottom property.
ScrollMarginLeft(LengthPercentageOrAuto)
The scroll-margin-left property.
ScrollMarginRight(LengthPercentageOrAuto)
The scroll-margin-right property.
ScrollMarginBlockStart(LengthPercentageOrAuto)
The scroll-margin-block-start property.
ScrollMarginBlockEnd(LengthPercentageOrAuto)
The scroll-margin-block-end property.
ScrollMarginInlineStart(LengthPercentageOrAuto)
The scroll-margin-inline-start property.
ScrollMarginInlineEnd(LengthPercentageOrAuto)
The scroll-margin-inline-end property.
ScrollMarginBlock(ScrollMarginBlock)
The scroll-margin-block property.
ScrollMarginInline(ScrollMarginInline)
The scroll-margin-inline property.
ScrollMargin(ScrollMargin)
The scroll-margin property.
ScrollPaddingTop(LengthPercentageOrAuto)
The scroll-padding-top property.
ScrollPaddingBottom(LengthPercentageOrAuto)
The scroll-padding-bottom property.
ScrollPaddingLeft(LengthPercentageOrAuto)
The scroll-padding-left property.
ScrollPaddingRight(LengthPercentageOrAuto)
The scroll-padding-right property.
ScrollPaddingBlockStart(LengthPercentageOrAuto)
The scroll-padding-block-start property.
ScrollPaddingBlockEnd(LengthPercentageOrAuto)
The scroll-padding-block-end property.
ScrollPaddingInlineStart(LengthPercentageOrAuto)
The scroll-padding-inline-start property.
ScrollPaddingInlineEnd(LengthPercentageOrAuto)
The scroll-padding-inline-end property.
ScrollPaddingBlock(ScrollPaddingBlock)
The scroll-padding-block property.
ScrollPaddingInline(ScrollPaddingInline)
The scroll-padding-inline property.
ScrollPadding(ScrollPadding)
The scroll-padding property.
FontWeight(FontWeight)
The font-weight property.
FontSize(FontSize)
The font-size property.
FontStretch(FontStretch)
The font-stretch property.
FontFamily(Vec<FontFamily<'i>>)
The font-family property.
FontStyle(FontStyle)
The font-style property.
FontVariantCaps(FontVariantCaps)
The font-variant-caps property.
LineHeight(LineHeight)
The line-height property.
Font(Font<'i>)
The font property.
VerticalAlign(VerticalAlign)
The vertical-align property.
FontPalette(DashedIdentReference<'i>)
The font-palette property.
TransitionProperty(SmallVec<[PropertyId<'i>; 1]>, VendorPrefix)
The transition-property property.
TransitionDuration(SmallVec<[Time; 1]>, VendorPrefix)
The transition-duration property.
TransitionDelay(SmallVec<[Time; 1]>, VendorPrefix)
The transition-delay property.
TransitionTimingFunction(SmallVec<[EasingFunction; 1]>, VendorPrefix)
The transition-timing-function property.
Transition(SmallVec<[Transition<'i>; 1]>, VendorPrefix)
The transition property.
AnimationName(AnimationNameList<'i>, VendorPrefix)
The animation-name property.
AnimationDuration(SmallVec<[Time; 1]>, VendorPrefix)
The animation-duration property.
AnimationTimingFunction(SmallVec<[EasingFunction; 1]>, VendorPrefix)
The animation-timing-function property.
AnimationIterationCount(SmallVec<[AnimationIterationCount; 1]>, VendorPrefix)
The animation-iteration-count property.
AnimationDirection(SmallVec<[AnimationDirection; 1]>, VendorPrefix)
The animation-direction property.
AnimationPlayState(SmallVec<[AnimationPlayState; 1]>, VendorPrefix)
The animation-play-state property.
AnimationDelay(SmallVec<[Time; 1]>, VendorPrefix)
The animation-delay property.
AnimationFillMode(SmallVec<[AnimationFillMode; 1]>, VendorPrefix)
The animation-fill-mode property.
AnimationComposition(SmallVec<[AnimationComposition; 1]>)
The animation-composition property.
AnimationTimeline(SmallVec<[AnimationTimeline<'i>; 1]>)
The animation-timeline property.
AnimationRangeStart(SmallVec<[AnimationRangeStart; 1]>)
The animation-range-start property.
AnimationRangeEnd(SmallVec<[AnimationRangeEnd; 1]>)
The animation-range-end property.
AnimationRange(SmallVec<[AnimationRange; 1]>)
The animation-range property.
Animation(AnimationList<'i>, VendorPrefix)
The animation property.
Transform(TransformList, VendorPrefix)
The transform property.
TransformOrigin(Position, VendorPrefix)
The transform-origin property.
TransformStyle(TransformStyle, VendorPrefix)
The transform-style property.
TransformBox(TransformBox)
The transform-box property.
BackfaceVisibility(BackfaceVisibility, VendorPrefix)
The backface-visibility property.
Perspective(Perspective, VendorPrefix)
The perspective property.
PerspectiveOrigin(Position, VendorPrefix)
The perspective-origin property.
Translate(Translate)
The translate property.
Rotate(Rotate)
The rotate property.
Scale(Scale)
The scale property.
TextTransform(TextTransform)
The text-transform property.
WhiteSpace(WhiteSpace)
The white-space property.
TabSize(LengthOrNumber, VendorPrefix)
The tab-size property.
WordBreak(WordBreak)
The word-break property.
LineBreak(LineBreak)
The line-break property.
Hyphens(Hyphens, VendorPrefix)
The hyphens property.
OverflowWrap(OverflowWrap)
The overflow-wrap property.
WordWrap(OverflowWrap)
The word-wrap property.
TextAlign(TextAlign)
The text-align property.
TextAlignLast(TextAlignLast, VendorPrefix)
The text-align-last property.
TextJustify(TextJustify)
The text-justify property.
WordSpacing(Spacing)
The word-spacing property.
LetterSpacing(Spacing)
The letter-spacing property.
TextIndent(TextIndent)
The text-indent property.
TextDecorationLine(TextDecorationLine, VendorPrefix)
The text-decoration-line property.
TextDecorationStyle(TextDecorationStyle, VendorPrefix)
The text-decoration-style property.
TextDecorationColor(CssColor, VendorPrefix)
The text-decoration-color property.
TextDecorationThickness(TextDecorationThickness)
The text-decoration-thickness property.
TextDecoration(TextDecoration, VendorPrefix)
The text-decoration property.
TextDecorationSkipInk(TextDecorationSkipInk, VendorPrefix)
The text-decoration-skip-ink property.
TextEmphasisStyle(TextEmphasisStyle<'i>, VendorPrefix)
The text-emphasis-style property.
TextEmphasisColor(CssColor, VendorPrefix)
The text-emphasis-color property.
TextEmphasis(TextEmphasis<'i>, VendorPrefix)
The text-emphasis property.
TextEmphasisPosition(TextEmphasisPosition, VendorPrefix)
The text-emphasis-position property.
TextShadow(SmallVec<[TextShadow; 1]>)
The text-shadow property.
TextSizeAdjust(TextSizeAdjust, VendorPrefix)
The text-size-adjust property.
Direction(Direction)
The direction property.
UnicodeBidi(UnicodeBidi)
The unicode-bidi property.
BoxDecorationBreak(BoxDecorationBreak, VendorPrefix)
The box-decoration-break property.
Resize(Resize)
The resize property.
Cursor(Cursor<'i>)
The cursor property.
CaretColor(ColorOrAuto)
The caret-color property.
CaretShape(CaretShape)
The caret-shape property.
Caret(Caret)
The caret property.
UserSelect(UserSelect, VendorPrefix)
The user-select property.
AccentColor(ColorOrAuto)
The accent-color property.
Appearance(Appearance<'i>, VendorPrefix)
The appearance property.
ListStyleType(ListStyleType<'i>)
The list-style-type property.
ListStyleImage(Image<'i>)
The list-style-image property.
ListStylePosition(ListStylePosition)
The list-style-position property.
ListStyle(ListStyle<'i>)
The list-style property.
MarkerSide(MarkerSide)
The marker-side property.
Composes(Composes<'i>)
The composes property.
Fill(SVGPaint<'i>)
The fill property.
FillRule(FillRule)
The fill-rule property.
FillOpacity(AlphaValue)
The fill-opacity property.
Stroke(SVGPaint<'i>)
The stroke property.
StrokeOpacity(AlphaValue)
The stroke-opacity property.
StrokeWidth(LengthPercentage)
The stroke-width property.
StrokeLinecap(StrokeLinecap)
The stroke-linecap property.
StrokeLinejoin(StrokeLinejoin)
The stroke-linejoin property.
StrokeMiterlimit(CSSNumber)
The stroke-miterlimit property.
StrokeDasharray(StrokeDasharray)
The stroke-dasharray property.
StrokeDashoffset(LengthPercentage)
The stroke-dashoffset property.
MarkerStart(Marker<'i>)
The marker-start property.
MarkerMid(Marker<'i>)
The marker-mid property.
MarkerEnd(Marker<'i>)
The marker-end property.
Marker(Marker<'i>)
The marker property.
ColorInterpolation(ColorInterpolation)
The color-interpolation property.
ColorInterpolationFilters(ColorInterpolation)
The color-interpolation-filters property.
ColorRendering(ColorRendering)
The color-rendering property.
ShapeRendering(ShapeRendering)
The shape-rendering property.
TextRendering(TextRendering)
The text-rendering property.
ImageRendering(ImageRendering)
The image-rendering property.
ClipPath(ClipPath<'i>, VendorPrefix)
The clip-path property.
ClipRule(FillRule)
The clip-rule property.
MaskImage(SmallVec<[Image<'i>; 1]>, VendorPrefix)
The mask-image property.
MaskMode(SmallVec<[MaskMode; 1]>)
The mask-mode property.
MaskRepeat(SmallVec<[BackgroundRepeat; 1]>, VendorPrefix)
The mask-repeat property.
MaskPositionX(SmallVec<[HorizontalPosition; 1]>)
The mask-position-x property.
MaskPositionY(SmallVec<[VerticalPosition; 1]>)
The mask-position-y property.
MaskPosition(SmallVec<[Position; 1]>, VendorPrefix)
The mask-position property.
MaskClip(SmallVec<[MaskClip; 1]>, VendorPrefix)
The mask-clip property.
MaskOrigin(SmallVec<[GeometryBox; 1]>, VendorPrefix)
The mask-origin property.
MaskSize(SmallVec<[BackgroundSize; 1]>, VendorPrefix)
The mask-size property.
MaskComposite(SmallVec<[MaskComposite; 1]>)
The mask-composite property.
MaskType(MaskType)
The mask-type property.
Mask(SmallVec<[Mask<'i>; 1]>, VendorPrefix)
The mask property.
MaskBorderSource(Image<'i>)
The mask-border-source property.
MaskBorderMode(MaskBorderMode)
The mask-border-mode property.
MaskBorderSlice(BorderImageSlice)
The mask-border-slice property.
MaskBorderWidth(Rect<BorderImageSideWidth>)
The mask-border-width property.
MaskBorderOutset(Rect<LengthOrNumber>)
The mask-border-outset property.
MaskBorderRepeat(BorderImageRepeat)
The mask-border-repeat property.
MaskBorder(MaskBorder<'i>)
The mask-border property.
WebKitMaskComposite(SmallVec<[WebKitMaskComposite; 1]>)
The -webkit-mask-composite property.
WebKitMaskSourceType(SmallVec<[WebKitMaskSourceType; 1]>, VendorPrefix)
The mask-source-type property.
WebKitMaskBoxImage(BorderImage<'i>, VendorPrefix)
The mask-box-image property.
WebKitMaskBoxImageSource(Image<'i>, VendorPrefix)
The mask-box-image-source property.
WebKitMaskBoxImageSlice(BorderImageSlice, VendorPrefix)
The mask-box-image-slice property.
WebKitMaskBoxImageWidth(Rect<BorderImageSideWidth>, VendorPrefix)
The mask-box-image-width property.
WebKitMaskBoxImageOutset(Rect<LengthOrNumber>, VendorPrefix)
The mask-box-image-outset property.
WebKitMaskBoxImageRepeat(BorderImageRepeat, VendorPrefix)
The mask-box-image-repeat property.
Filter(FilterList<'i>, VendorPrefix)
The filter property.
BackdropFilter(FilterList<'i>, VendorPrefix)
The backdrop-filter property.
ZIndex(ZIndex)
The z-index property.
ContainerType(ContainerType)
The container-type property.
ContainerName(ContainerNameList<'i>)
The container-name property.
Container(Container<'i>)
The container property.
ViewTransitionName(CustomIdent<'i>)
The view-transition-name property.
ColorScheme(ColorScheme)
The color-scheme property.
All(CSSWideKeyword)
The all shorthand property.
Unparsed(UnparsedProperty<'i>)
An unparsed property.
Custom(CustomProperty<'i>)
A custom or unknown property.
Implementations§
Source§impl<'i> Property<'i>
impl<'i> Property<'i>
Sourcepub fn parse<'t>(
property_id: PropertyId<'i>,
input: &mut Parser<'i, 't>,
options: &ParserOptions<'_, 'i>,
) -> Result<Property<'i>, ParseError<'i, ParserError<'i>>>
pub fn parse<'t>( property_id: PropertyId<'i>, input: &mut Parser<'i, 't>, options: &ParserOptions<'_, 'i>, ) -> Result<Property<'i>, ParseError<'i, ParserError<'i>>>
Parses a CSS property by name.
Sourcepub fn property_id(&self) -> PropertyId<'i>
pub fn property_id(&self) -> PropertyId<'i>
Returns the property id for this property.
Sourcepub fn parse_string(
property_id: PropertyId<'i>,
input: &'i str,
options: ParserOptions<'_, 'i>,
) -> Result<Self, ParseError<'i, ParserError<'i>>>
pub fn parse_string( property_id: PropertyId<'i>, input: &'i str, options: ParserOptions<'_, 'i>, ) -> Result<Self, ParseError<'i, ParserError<'i>>>
Parses a CSS property from a string.
Sourcepub fn set_prefix(&mut self, prefix: VendorPrefix)
pub fn set_prefix(&mut self, prefix: VendorPrefix)
Sets the vendor prefixes for this property.
If the property doesn’t support vendor prefixes, this function does nothing. If vendor prefixes are set which do not exist for the property, they are ignored and only the valid prefixes are set.
Sourcepub fn value_to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>,
) -> Result<(), PrinterError>where
W: Write,
pub fn value_to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>,
) -> Result<(), PrinterError>where
W: Write,
Serializes the value of a CSS property without its name or !important flag.
Sourcepub fn value_to_css_string(
&self,
options: PrinterOptions<'_>,
) -> Result<String, PrinterError>
pub fn value_to_css_string( &self, options: PrinterOptions<'_>, ) -> Result<String, PrinterError>
Serializes the value of a CSS property as a string.
Sourcepub fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>,
important: bool,
) -> Result<(), PrinterError>where
W: Write,
pub fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>,
important: bool,
) -> Result<(), PrinterError>where
W: Write,
Serializes the CSS property, with an optional !important flag.
Sourcepub fn to_css_string(
&self,
important: bool,
options: PrinterOptions<'_>,
) -> Result<String, PrinterError>
pub fn to_css_string( &self, important: bool, options: PrinterOptions<'_>, ) -> Result<String, PrinterError>
Serializes the CSS property to a string, with an optional !important flag.
Sourcepub fn longhand(&self, property_id: &PropertyId<'_>) -> Option<Property<'i>>
pub fn longhand(&self, property_id: &PropertyId<'_>) -> Option<Property<'i>>
Returns the given longhand property for a shorthand.
Trait Implementations§
Source§impl<'i, 'de: 'i> Deserialize<'de> for Property<'i>
Available on crate feature serde only.
impl<'i, 'de: 'i> Deserialize<'de> for Property<'i>
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl<'i> JsonSchema for Property<'i>
Available on crate feature jsonschema only.
impl<'i> JsonSchema for Property<'i>
jsonschema only.Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn schema_name() -> String
fn schema_name() -> String
Source§impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for Property<'i>
impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for Property<'i>
Source§const CHILD_TYPES: VisitTypes
const CHILD_TYPES: VisitTypes
visitor only.impl<'i> StructuralPartialEq for Property<'i>
Auto Trait Implementations§
impl<'i> Freeze for Property<'i>
impl<'i> RefUnwindSafe for Property<'i>
impl<'i> Send for Property<'i>
impl<'i> Sync for Property<'i>
impl<'i> Unpin for Property<'i>
impl<'i> UnwindSafe for Property<'i>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more