style_traits::values

Trait ToCss

Source
pub trait ToCss {
    // Required method
    fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
       where W: Write;

    // Provided method
    fn to_css_string(&self) -> String { ... }
}
Expand description

Serialises a value according to its CSS representation.

This trait is implemented for str and its friends, serialising the string contents as a CSS quoted string.

This trait is derivable with #[derive(ToCss)], with the following behaviour:

  • unit variants get serialised as the snake-case representation of their name;

  • unit variants whose name starts with “Moz” or “Webkit” are prepended with a “-”;

  • if #[css(comma)] is found on a variant, its fields are separated by commas, otherwise, by spaces;

  • if #[css(function)] is found on a variant, the variant name gets serialised like unit variants and its fields are surrounded by parentheses;

  • if #[css(iterable)] is found on a function variant, that variant needs to have a single member, and that member needs to be iterable. The iterable will be serialized as the arguments for the function;

  • an iterable field can also be annotated with #[css(if_empty = "foo")] to print "foo" if the iterator is empty;

  • if #[css(dimension)] is found on a variant, that variant needs to have a single member. The variant would be serialized as a CSS dimension token, like: ;

  • if #[css(skip)] is found on a field, the ToCss call for that field is skipped;

  • if #[css(skip_if = "function")] is found on a field, the ToCss call for that field is skipped if function returns true. This function is provided the field as an argument;

  • if #[css(contextual_skip_if = "function")] is found on a field, the ToCss call for that field is skipped if function returns true. This function is given all the fields in the current struct or variant as an argument;

  • #[css(represents_keyword)] can be used on bool fields in order to serialize the field name if the field is true, or nothing otherwise. It also collects those keywords for SpecifiedValueInfo.

  • #[css(bitflags(single="", mixed="", validate_mixed="", overlapping_bits)] can be used to derive parse / serialize / etc on bitflags. The rules for parsing bitflags are the following:

    • single flags can only appear on their own. It’s common that bitflags properties at least have one such value like none or auto.

    • mixed properties can appear mixed together, but not along any other flag that shares a bit with itself. For example, if you have three bitflags like:

      FOO = 1 << 0; BAR = 1 << 1; BAZ = 1 << 2; BAZZ = BAR | BAZ;

      Then the following combinations won’t be valid:

      • foo foo: (every flag shares a bit with itself)
      • bar bazz: (bazz shares a bit with bar)

      But bar baz will be valid, as they don’t share bits, and so would foo with any other flag, or bazz on its own.

    • validate_mixed can be used to reject invalid mixed combinations, and also to simplify the type or add default ones if needed.

    • overlapping_bits enables some tracking during serialization of mixed flags to avoid serializing variants that can subsume other variants. In the example above, you could do: mixed=“foo,bazz,bar,baz”, overlapping_bits to ensure that if bazz is serialized, bar and baz aren’t, even though their bits are set. Note that the serialization order is canonical, and thus depends on the order you specify the flags in.

  • finally, one can put #[css(derive_debug)] on the whole type, to implement Debug by a single call to ToCss::to_css.

Required Methods§

Source

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Serialize self in CSS syntax, writing to dest.

Provided Methods§

Source

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string.

(This is a convenience wrapper for to_css and probably should not be overridden.)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToCss for str

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl ToCss for ()

Source§

fn to_css<W>(&self, _: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl ToCss for Au

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl ToCss for String

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for Token<'a>

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for f32

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for i8

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for i32

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for u8

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for u16

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for u32

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a> ToCss for UnicodeRange

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<'a, T> ToCss for &'a T
where T: ToCss + ?Sized,

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<T> ToCss for Option<T>
where T: ToCss,

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<T> ToCss for Arc<T>
where T: ?Sized + ToCss,

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<T> ToCss for Box<T>
where T: ?Sized + ToCss,

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Source§

impl<T> ToCss for Vec<T>

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Implementors§

Source§

impl ToCss for OwnedStr

impl ToCss for ColorSpace

impl ToCss for SpeakAs

impl ToCss for Symbol

impl ToCss for System

impl ToCss for FontStyle

impl ToCss for Source

impl ToCss for Qualifier

impl ToCss for PropertyId

impl ToCss for LonghandId

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for T

impl ToCss for Inherits

impl ToCss for DataType

impl ToCss for Multiplier

impl ToCss for AllowOr

impl ToCss for BoolValue

impl ToCss for Operator

impl ToCss for Operator

impl ToCss for Scan

impl ToCss for Resize

impl ToCss for PageSize

impl ToCss for Impossible

impl ToCss for ArcSize

impl ToCss for ArcSweep

impl ToCss for ByTo

impl ToCss for FillRule

impl ToCss for ShapeBox

impl ToCss for RaySize

impl ToCss for PaperSize

impl ToCss for ScrollAxis

impl ToCss for Scroller

impl ToCss for LineWidth

impl ToCss for Appearance

impl ToCss for Clear

impl ToCss for Float

impl ToCss for Overflow

impl ToCss for Resize

impl ToCss for Zoom

impl ToCss for Leaf

impl ToCss for Color

impl ToCss for FontFamily

impl ToCss for FontSize

impl ToCss for FontStyle

impl ToCss for FontWeight

impl ToCss for MathDepth

impl ToCss for SystemFont

impl ToCss for XTextScale

impl ToCss for Length

impl ToCss for Quotes

impl ToCss for CoordBox

impl ToCss for PageName

impl ToCss for DProperty

impl ToCss for PaintOrder

impl ToCss for LineBreak

impl ToCss for Spacing

impl ToCss for TextAlign

impl ToCss for WordBreak

impl ToCss for CursorKind

impl ToCss for Inert

impl ToCss for MozTheme

impl ToCss for UserFocus

impl ToCss for UserInput

impl ToCss for UserSelect

impl ToCss for Fallback

impl ToCss for Negative

impl ToCss for Pad

impl ToCss for Symbols

impl ToCss for SourceList

impl ToCss for UrlSource

impl ToCss for MediaList

impl ToCss for MediaQuery

impl ToCss for Component

impl ToCss for Descriptor

impl ToCss for Direction

impl ToCss for CssUrl

impl ToCss for PairValues

impl ToCss for LayerName

impl ToCss for Angle

impl ToCss for Zoom

impl ToCss for FamilyName

impl ToCss for FontFamily

impl ToCss for FontSize

impl ToCss for FontStyle

impl ToCss for FontWeight

impl ToCss for Percentage

impl ToCss for Resolution

impl ToCss for Time

impl ToCss for Path

impl ToCss for FontTag

impl ToCss for AlignFlags

impl ToCss for AlignItems

impl ToCss for AlignSelf

impl ToCss for Angle

impl ToCss for Xywh

impl ToCss for Contain

impl ToCss for Display

impl ToCss for WillChange

impl ToCss for Absolute

impl ToCss for LightDark

impl ToCss for XLang

impl ToCss for QuoteList

impl ToCss for QuotePair

impl ToCss for Percentage

impl ToCss for AnchorName

impl ToCss for Resolution

impl ToCss for Attr

impl ToCss for Integer

impl ToCss for Number

impl ToCss for Opacity

impl ToCss for Time

impl ToCss for AtomString

impl ToCss for Color

impl ToCss for Position

impl ToCss for Position

impl<'a> ToCss for PropertyDeclarationId<'a>

impl<'a> ToCss for Unpacked<'a>

impl<'a> ToCss for ModernComponent<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<'a> ToCss for LonghandsToSerialize<'a>

impl<A, B> ToCss for Either<A, B>
where A: ToCss, B: ToCss,

impl<Angle, LengthPercentage> ToCss for GenericPathOrShapeFunction<Angle, LengthPercentage>
where Angle: ToCss, LengthPercentage: ToCss, Shape<Angle, LengthPercentage>: ToCss,

impl<Angle, LengthPercentage> ToCss for ShapeCommand<Angle, LengthPercentage>
where Angle: ToCss + Zero, LengthPercentage: PartialEq + ToCss,

impl<Angle, LengthPercentage> ToCss for Shape<Angle, LengthPercentage>
where Angle: ToCss + Zero, LengthPercentage: PartialEq + ToCss,

impl<Angle, NonNegativeFactor, ZeroToOneFactor, Length, Shadow, U> ToCss for GenericFilter<Angle, NonNegativeFactor, ZeroToOneFactor, Length, Shadow, U>
where Angle: ToCss, NonNegativeFactor: ToCss, ZeroToOneFactor: ToCss, Length: ToCss, Shadow: ToCss, U: ToCss,

impl<Angle, Number, Length, Integer, LengthPercentage> ToCss for GenericTransformOperation<Angle, Number, Length, Integer, LengthPercentage>
where Angle: Zero + ToCss, LengthPercentage: Zero + ZeroNoPercent + ToCss, Number: PartialEq + ToCss, Length: ToCss, Integer: ToCss,

impl<Angle, Position> ToCss for RayFunction<Angle, Position>
where Angle: ToCss, Position: ToCss,

impl<Angle, Position, LengthPercentage, NonNegativeLengthPercentage, BasicShapeRect> ToCss for GenericBasicShape<Angle, Position, LengthPercentage, NonNegativeLengthPercentage, BasicShapeRect>
where Angle: ToCss, Position: ToCss, LengthPercentage: ToCss, NonNegativeLengthPercentage: ToCss, BasicShapeRect: ToCss, Circle<Position, NonNegativeLengthPercentage>: ToCss, Ellipse<Position, NonNegativeLengthPercentage>: ToCss, GenericPathOrShapeFunction<Angle, LengthPercentage>: ToCss,

impl<BasicShape, I> ToCss for GenericShapeOutside<BasicShape, I>
where BasicShape: ToCss, I: ToCss,

impl<BasicShape, U> ToCss for GenericClipPath<BasicShape, U>
where BasicShape: ToCss, U: ToCss,

impl<C> ToCss for GenericColorOrAuto<C>
where C: ToCss,

impl<C> ToCss for GenericSVGPaintFallback<C>
where C: ToCss,

impl<C> ToCss for GenericCaretColor<C>
where C: ToCss,

impl<C, U> ToCss for GenericSVGPaintKind<C, U>
where C: ToCss, U: ToCss,

impl<C: ToCss> ToCss for ColorFunction<C>

impl<Color> ToCss for GenericScrollbarColor<Color>
where Color: ToCss,

impl<Color, SizeLength, BlurShapeLength, ShapeLength> ToCss for GenericBoxShadow<Color, SizeLength, BlurShapeLength, ShapeLength>
where Color: ToCss, SizeLength: ToCss, BlurShapeLength: ToCss, ShapeLength: ToCss,

impl<Color, SizeLength, ShapeLength> ToCss for GenericSimpleShadow<Color, SizeLength, ShapeLength>
where Color: ToCss, SizeLength: ToCss, ShapeLength: ToCss,

impl<Color, T> ToCss for GenericGradientItem<Color, T>
where Color: ToCss, T: ToCss,

impl<Color, T> ToCss for ColorStop<Color, T>
where Color: ToCss, T: ToCss,

impl<Color, Url> ToCss for GenericSVGPaint<Color, Url>
where Color: ToCss, Url: ToCss,

impl<Color: ToCss, Percentage: ToCss + ToPercentage> ToCss for ColorMix<Color, Percentage>

impl<Component> ToCss for ValueInner<Component>
where Component: ToCss,

impl<Component> ToCss for Value<Component>
where Component: ToCss,

impl<Component: ToCss> ToCss for ComponentList<Component>

impl<D, LP, NL, NLP, P, A, AoP, C> ToCss for Gradient<D, LP, NL, NLP, P, A, AoP, C>
where D: LineDirection, LP: ToCss, NL: ToCss, NLP: ToCss, P: PositionComponent + ToCss, A: ToCss + Zero, AoP: ToCss, C: ToCss,

impl<Factor: ToCss> ToCss for GenericFontSizeAdjust<Factor>

impl<Function> ToCss for GenericOffsetPath<Function>
where Function: ToCss,

impl<G, U, C, P, Resolution> ToCss for Image<G, U, C, P, Resolution>
where G: ToCss, U: ToCss, C: ToCss, P: ToCss, Resolution: ToCss,

impl<H, V> ToCss for GenericOffsetPosition<H, V>
where H: ToCss, V: ToCss, GenericPosition<H, V>: ToCss,

impl<H, V, Depth> ToCss for GenericTransformOrigin<H, V, Depth>
where H: ToCss, V: ToCss, Depth: ToCss,

impl<I> ToCss for MozPrefFeatureValue<I>
where I: ToCss,

impl<I> ToCss for GenericContentItem<I>
where I: ToCss,

impl<I> ToCss for GenericZIndex<I>
where I: ToCss,

impl<I> ToCss for GenericCounterReset<I>
where I: ToCss, GenericCounters<I>: ToCss,

impl<I> ToCss for GenericCounterSet<I>
where I: ToCss, GenericCounters<I>: ToCss,

impl<I, C> ToCss for GenericCrossFadeImage<I, C>
where I: ToCss, C: ToCss,

impl<I: Zero + ToCss> ToCss for LineClamp<I>

impl<I: ToCss> ToCss for LineNameListValue<I>

impl<I: ToCss> ToCss for LineNameList<I>

impl<I: ToCss> ToCss for NameRepeat<I>

impl<I: ToCss, R: ToCss> ToCss for GenericImageSetItem<I, R>

impl<Image> ToCss for GenericContent<Image>
where Image: ToCss,

impl<Image> ToCss for GenericContentItems<Image>
where Image: ToCss,

impl<Image, Color, Percentage> ToCss for GenericCrossFade<Image, Color, Percentage>
where Image: ToCss, Color: ToCss, Percentage: ToCss,

impl<Image, Color, Percentage> ToCss for GenericCrossFadeElement<Image, Color, Percentage>
where Image: ToCss, Color: ToCss, Percentage: ToCss,

impl<Image, Resolution> ToCss for GenericImageSet<Image, Resolution>
where Image: ToCss, Resolution: ToCss,

impl<Image: ToCss> ToCss for Cursor<Image>

impl<Image: ToCss, Number: ToCss> ToCss for CursorImage<Image, Number>

impl<Integer> ToCss for RepeatCount<Integer>
where Integer: ToCss,

impl<Integer> ToCss for CounterPair<Integer>
where Integer: ToCss + PartialEq<i32>,

impl<Integer> ToCss for FeatureTagValue<Integer>
where Integer: One + ToCss + PartialEq,

impl<Integer> ToCss for GridLine<Integer>
where Integer: ToCss + PartialEq + Zero + One,

impl<Integer, Number, LinearStops> ToCss for TimingFunction<Integer, Number, LinearStops>
where Integer: ToCss, Number: ToCss, LinearStops: ToCss,

impl<Integer: ToCss + PartialEq> ToCss for GenericHyphenateLimitChars<Integer>

impl<L> ToCss for GenericTrackBreadth<L>
where L: ToCss,

impl<L> ToCss for Circle<L>
where L: ToCss,

impl<L> ToCss for GenericSVGLength<L>
where L: ToCss,

impl<L> ToCss for GenericSVGStrokeDashArray<L>
where L: ToCss,

impl<L> ToCss for GenericTextDecorationLength<L>
where L: ToCss,

impl<L> ToCss for GenericPerspectiveFunction<L>
where L: ToCss,

impl<L> ToCss for GenericBorderCornerRadius<L>
where L: ToCss, Size2D<L>: ToCss,

impl<L> ToCss for BorderRadius<L>
where L: PartialEq + ToCss,

impl<L> ToCss for GenericBorderSpacing<L>
where L: ToCss, Size2D<L>: ToCss,

impl<L> ToCss for Size2D<L>
where L: ToCss + PartialEq,

impl<L, I> ToCss for GenericGridTemplateComponent<L, I>
where L: ToCss, I: ToCss,

impl<L, N> ToCss for GenericLengthOrNumber<L, N>
where L: ToCss, N: ToCss,

impl<L: CalcNodeLeaf> ToCss for CalcNode<L>

impl<L: ToCss> ToCss for TrackSize<L>

impl<L: ToCss, I: ToCss> ToCss for TrackList<L, I>

impl<L: ToCss, I: ToCss> ToCss for TrackRepeat<L, I>

impl<LP> ToCss for GenericMargin<LP>
where LP: ToCss,

impl<LP, N> ToCss for GenericBorderImageSideWidth<LP, N>
where LP: ToCss, N: ToCss,

impl<Length, NonNegativeLength> ToCss for InsetRect<Length, NonNegativeLength>
where Length: ToCss + PartialEq, NonNegativeLength: ToCss + PartialEq + Zero,

impl<Length, Number, Percentage, LengthPercentage, Color, Image, Url, Integer, Angle, Time, Resolution, TransformFunction> ToCss for GenericValueComponent<Length, Number, Percentage, LengthPercentage, Color, Image, Url, Integer, Angle, Time, Resolution, TransformFunction>
where Length: ToCss, Number: ToCss, Percentage: ToCss, LengthPercentage: ToCss, Color: ToCss, Image: ToCss, Url: ToCss, Integer: ToCss, Angle: ToCss, Time: ToCss, Resolution: ToCss, TransformFunction: ToCss,

impl<LengthOrAuto> ToCss for GenericClipRect<LengthOrAuto>
where LengthOrAuto: ToCss,

impl<LengthPercent> ToCss for GenericAnimationTimeline<LengthPercent>
where LengthPercent: ToCss, GenericViewFunction<LengthPercent>: ToCss,

impl<LengthPercent> ToCss for GenericBackgroundSize<LengthPercent>
where LengthPercent: ToCss,

impl<LengthPercent> ToCss for GenericLengthPercentageOrAuto<LengthPercent>
where LengthPercent: ToCss,

impl<LengthPercent> ToCss for GenericLengthPercentageOrNormal<LengthPercent>
where LengthPercent: ToCss,

impl<LengthPercent> ToCss for GenericMaxSize<LengthPercent>
where LengthPercent: ToCss,

impl<LengthPercent> ToCss for GenericSize<LengthPercent>
where LengthPercent: ToCss,

impl<LengthPercent> ToCss for GenericViewFunction<LengthPercent>
where LengthPercent: ToCss, GenericViewTimelineInset<LengthPercent>: ToCss,

impl<LengthPercent> ToCss for ViewTimelineInset<LengthPercent>
where LengthPercent: PartialEq + ToCss,

impl<LengthPercentage> ToCss for GenericVerticalAlign<LengthPercentage>
where LengthPercentage: ToCss,

impl<LengthPercentage> ToCss for CoordinatePair<LengthPercentage>
where LengthPercentage: ToCss,

impl<LengthPercentage> ToCss for GenericPolygon<LengthPercentage>
where LengthPercentage: ToCss,

impl<LengthPercentage> ToCss for PolygonCoord<LengthPercentage>
where LengthPercentage: ToCss,

impl<LengthPercentage> ToCss for GenericAnchorSizeFunction<LengthPercentage>
where LengthPercentage: ToCss,

impl<LengthPercentage> ToCss for GenericTextIndent<LengthPercentage>
where LengthPercentage: ToCss,

impl<LengthPercentage, Integer> ToCss for GenericTrackListValue<LengthPercentage, Integer>
where LengthPercentage: ToCss, Integer: ToCss,

impl<LengthPercentage, Length> ToCss for GenericTranslate<LengthPercentage, Length>
where LengthPercentage: Zero + ZeroNoPercent + ToCss, Length: Zero + ToCss,

impl<N> ToCss for PreferredRatio<N>
where N: ToCss, Ratio<N>: ToCss,

impl<N> ToCss for NumberOrAuto<N>
where N: ToCss,

impl<N> ToCss for GenericAspectRatio<N>
where N: ToCss, PreferredRatio<N>: ToCss,

impl<N> ToCss for Ratio<N>
where N: ToCss,

impl<N, L> ToCss for GenericLineHeight<N, L>
where N: ToCss, L: ToCss,

impl<N: ToCss + Zero, I: ToCss + Zero> ToCss for InitialLetter<N, I>

impl<NonNegativeLength> ToCss for GenericPerspective<NonNegativeLength>
where NonNegativeLength: ToCss,

impl<NonNegativeLength, NonNegativeLengthPercentage> ToCss for GenericEndingShape<NonNegativeLength, NonNegativeLengthPercentage>
where NonNegativeLength: ToCss, NonNegativeLengthPercentage: ToCss,

impl<NonNegativeLengthPercentage> ToCss for GenericShapeRadius<NonNegativeLengthPercentage>
where NonNegativeLengthPercentage: ToCss,

impl<NonNegativeLengthPercentage> ToCss for GenericEllipse<NonNegativeLengthPercentage>
where NonNegativeLengthPercentage: ToCss,

impl<Number> ToCss for Scale<Number>
where Number: ToCss + PartialEq + Copy, f32: From<Number>,

impl<Number> ToCss for VariationValue<Number>
where Number: ToCss,

impl<Number, Angle> ToCss for Rotate<Number, Angle>

impl<NumberOrPercentage> ToCss for GenericBorderImageSlice<NumberOrPercentage>
where NumberOrPercentage: ToCss, Rect<NumberOrPercentage>: ToCss,

impl<OpacityType> ToCss for GenericSVGOpacity<OpacityType>
where OpacityType: ToCss,

impl<P> ToCss for AnchorSide<P>
where P: ToCss,

impl<P, LP> ToCss for GenericInset<P, LP>
where P: ToCss, LP: ToCss,

impl<Percentage, LengthPercentage> ToCss for GenericAnchorFunction<Percentage, LengthPercentage>
where Percentage: ToCss, LengthPercentage: ToCss,

impl<Pos> ToCss for GenericPositionOrAuto<Pos>
where Pos: ToCss,

impl<Position, NonNegativeLengthPercentage> ToCss for Circle<Position, NonNegativeLengthPercentage>
where Position: ToCss, NonNegativeLengthPercentage: ToCss + PartialEq,

impl<Position, NonNegativeLengthPercentage> ToCss for Ellipse<Position, NonNegativeLengthPercentage>
where Position: ToCss, NonNegativeLengthPercentage: ToCss + PartialEq,

impl<PositiveInteger> ToCss for GenericColumnCount<PositiveInteger>
where PositiveInteger: ToCss,

impl<R> ToCss for GenericClipRectOrAuto<R>
where R: ToCss,

impl<S> ToCss for GenericFlexBasis<S>
where S: ToCss,

impl<S> ToCss for GenericPageSize<S>
where S: ToCss,

impl<S> ToCss for PositionComponent<S>
where S: ToCss,

impl<S> ToCss for OriginComponent<S>
where S: ToCss,

impl<Shapes, RayFunction, U> ToCss for GenericOffsetPathFunction<Shapes, RayFunction, U>
where Shapes: ToCss, RayFunction: ToCss, U: ToCss,

impl<T> ToCss for Optional<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for OwnedList<T>
where T: ToCss,

impl<T> ToCss for FontSettings<T>
where T: ToCss,

impl<T> ToCss for GenericImplicitGridTracks<T>
where T: ToCss,

impl<T> ToCss for Rect<T>
where T: PartialEq + ToCss,

impl<T> ToCss for GreaterThanOrEqualToOne<T>
where T: ToCss,

impl<T> ToCss for NonNegative<T>
where T: ToCss,

impl<T> ToCss for ZeroToOne<T>
where T: ToCss,

impl<T> ToCss for GenericMatrix<T>
where T: ToCss,

impl<T> ToCss for GenericMatrix3D<T>
where T: ToCss,

impl<T> ToCss for GenericTransform<T>
where T: ToCss,

impl<T: ToCss + Zero> ToCss for AnimationDuration<T>

impl<T: ToCss> ToCss for FFVDeclaration<T>

impl<U> ToCss for GenericUrlOrNone<U>
where U: ToCss,

impl<ValueType: ToCss> ToCss for ColorComponent<ValueType>