Skip to main content

ToTyped

Trait ToTyped 

Source
pub trait ToTyped {
    // Provided methods
    fn to_typed(&self, _dest: &mut ThinVec<TypedValue>) -> Result<(), ()> { ... }
    fn to_typed_value(&self) -> Option<TypedValue> { ... }
    fn to_numeric_value(&self) -> Option<NumericValue> { ... }
    fn to_typed_value_list(&self) -> Option<TypedValueList> { ... }
}
Expand description

Reifies a value into its Typed OM representation.

This trait is the Typed OM analogue of ToCss. Instead of serializing values into CSS syntax, it converts them into TypedValues that can be exposed to the DOM as CSSStyleValue subclasses.

Most consumers should use ToTyped::to_typed_value or ToTyped::to_typed_value_list, depending on whether they need a single reified value or the full list of reified values.

This trait is derivable with #[derive(ToTyped)]. The derived implementation currently supports:

  • Keyword enums: Enums whose variants are all unit variants are automatically reified as TypedValue::Keyword, using the same serialization logic as ToCss.

  • Bitflags structs: Structs annotated with #[css(bitflags(single = "...", mixed = "...", overlapping_bits))] are automatically reified as TypedValue::Keyword values when they can be represented as a single CSS keyword. Values that would serialize to multiple CSS keywords are treated as unsupported.

  • Structs and data-carrying variants: Unless treated specially (such as bitflags structs), the derive attempts to call .to_typed() recursively on supported fields or variant payloads, producing TypedValues when possible.

  • Other cases: If no automatic mapping is defined, or recursion is explicitly disabled, the derived implementation falls back to the default method (which returns Err(()), and thus to_typed_value() returns None).

Over time, the derive may be extended to handle additional CSS value categories such as numeric, color, and transform types.

Summary of derive attributes recognized by #[derive(ToTyped)]:

  • #[css(bitflags(single = "...", mixed = "...", overlapping_bits))] on a struct generates keyword reification for CSS bitflags types. Values that can be represented as a single CSS keyword are reified as TypedValue::Keyword; values that would serialize to multiple CSS keywords are treated as unsupported and return Err(()).

    overlapping_bits is supported for bitflags where one keyword subsumes other internal bits, such as contain: size.

  • #[typed(skip_derive_fields)] on the type disables recursion for structs and data-carrying enum variants.

  • #[css(skip)], #[typed(skip)], or #[typed(todo)] on a variant cause that variant to be treated as unsupported (the derived implementation returns Err(())).

  • #[css(skip)] on a field causes that field to be ignored during reification.

  • #[css(skip_if = "...")] / #[typed(skip_if = "...")] on a field conditionally disables reification for that field. If the provided function returns true for the field value, the field is ignored.

  • #[css(contextual_skip_if = "...")] / #[typed(contextual_skip_if = "...")] on a field conditionally disables reification for that field. The provided function is called with all fields in the current struct or variant. If it returns true, the field is ignored.

    Typed skip annotations override CSS skip annotations when both are present.

  • #[css(keyword = "...")] on a unit variant overrides the keyword that would otherwise be derived from the Rust identifier.

  • #[css(comma)] on the variant indicates that supported fields may reify to multiple separate values. When this attribute is present, multiple TypedValue items may be produced, unless #[typed(no_multiple_values)] is also present. If multiple values are not allowed and the derived implementation would produce more than one item, it returns Err(()).

  • #[typed(no_multiple_values)] on a variant prevents it from reifying to multiple TypedValue items, even if #[css(comma)] is present.

  • #[css(iterable)] on a field indicates that the field represents a list of values. Each item in the iterable is reified individually by calling ToTyped::to_typed on the element type.

  • #[css(if_empty = "...")] on an iterable field specifies a keyword value that should be produced when the iterable is empty.

  • #[css(represents_keyword)] on a bool field causes the field name to be reified as a keyword when the field is true.

Provided Methods§

Source

fn to_typed(&self, _dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Attempt to convert self into one or more TypedValue items.

Implementations append any resulting values to dest. This is the low-level entry point used by the Typed OM reification infrastructure. Most callers should prefer ToTyped::to_typed_value or ToTyped::to_typed_value_list.

Returning Err(()) indicates that the value cannot be represented as a property-agnostic Typed OM value.

Source

fn to_typed_value(&self) -> Option<TypedValue>

Attempt to convert self into a TypedValue.

Returns the first reified value as Some(TypedValue) if the value can be reified into a property-agnostic CSSStyleValue subclass. Returns None if the value is unrepresentable, in which case consumers produce a property-tied CSSStyleValue instead.

Source

fn to_numeric_value(&self) -> Option<NumericValue>

Attempt to convert self into a NumericValue.

Returns Some(NumericValue) if the value reifies to a single TypedValue::Numeric item. Returns None otherwise.

Source

fn to_typed_value_list(&self) -> Option<TypedValueList>

Attempt to convert self into a TypedValueList.

Returns Some(TypedValueList) if the value can be reified into one or more property-agnostic Typed OM values. Returns None if the value is unrepresentable, in which case consumers produce a property-tied CSSStyleValue instead.

Implementations on Foreign Types§

Source§

impl<'a> ToTyped for f32

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Source§

impl<'a> ToTyped for i8

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Source§

impl<'a> ToTyped for i32

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Source§

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

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Source§

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

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Source§

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

Source§

fn to_typed(&self, dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Implementors§

Source§

impl ToTyped for WritingModeProperty

Source§

impl ToTyped for CSSWideKeyword

Source§

impl ToTyped for style::properties::generated::longhands::_servo_top_layer::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::_webkit_text_security::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::backface_visibility::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::background_attachment::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::background_blend_mode::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::background_clip::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::background_origin::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::border_collapse::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::box_sizing::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::column_span::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::direction::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::empty_cells::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::flex_direction::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::flex_wrap::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::font_kerning::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::font_optical_sizing::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::font_variant_caps::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::font_variant_position::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::isolation::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::list_style_position::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::mask_clip::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::mask_composite::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::mask_mode::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::mask_origin::single_value::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::mask_type::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::mix_blend_mode::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::object_fit::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::table_layout::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::text_decoration_style::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::text_rendering::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::text_wrap_mode::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::unicode_bidi::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::visibility::computed_value::T

Source§

impl ToTyped for style::properties::generated::longhands::white_space_collapse::computed_value::T

Source§

impl ToTyped for style::values::computed::box_::Resize

Source§

impl ToTyped for ComputedLeaf

Source§

impl ToTyped for PageSize

Source§

impl ToTyped for style::values::computed::text::TextEmphasisStyle

Source§

impl ToTyped for FillRule

Source§

impl ToTyped for ShapeBox

Source§

impl ToTyped for ShapeGeometryBox

Source§

impl ToTyped for BaselineShiftKeyword

Source§

impl ToTyped for OverflowClipMarginBox

Source§

impl ToTyped for PositionProperty

Source§

impl ToTyped for TimingKeyword

Source§

impl ToTyped for PageOrientation

Source§

impl ToTyped for TransformStyle

Source§

impl ToTyped for AnimationComposition

Source§

impl ToTyped for AnimationDirection

Source§

impl ToTyped for AnimationFillMode

Source§

impl ToTyped for style::values::specified::animation::AnimationIterationCount

Source§

impl ToTyped for AnimationPlayState

Source§

impl ToTyped for ScrollAxis

Source§

impl ToTyped for TimelineRangeName

Source§

impl ToTyped for TransitionBehavior

Source§

impl ToTyped for TransitionProperty

Source§

impl ToTyped for BackgroundRepeatKeyword

Source§

impl ToTyped for BorderStyle

Source§

impl ToTyped for LineWidth

Source§

impl ToTyped for AlignmentBaseline

Source§

impl ToTyped for Appearance

Source§

impl ToTyped for BaselineSource

Source§

impl ToTyped for BreakBetween

Source§

impl ToTyped for BreakWithin

Source§

impl ToTyped for Clear

Source§

impl ToTyped for ContentVisibility

Source§

impl ToTyped for DominantBaseline

Source§

impl ToTyped for Float

Source§

impl ToTyped for Overflow

Source§

impl ToTyped for OverflowAnchor

Source§

impl ToTyped for OverscrollBehavior

Source§

impl ToTyped for style::values::specified::box_::Resize

Source§

impl ToTyped for ScrollSnapStop

Source§

impl ToTyped for style::values::specified::box_::Zoom

Source§

impl ToTyped for Leaf

Source§

impl ToTyped for Color

Source§

impl ToTyped for ForcedColorAdjust

Source§

impl ToTyped for PrintColorAdjust

Source§

impl ToTyped for style::values::specified::corner_shape::CornerShape

Source§

impl ToTyped for SuperellipseArg

Source§

impl ToTyped for NumberOrPercentage

Source§

impl ToTyped for AbsoluteFontWeight
where Number: ToTyped,

Source§

impl ToTyped for style::values::specified::font::FontFamily

Source§

impl ToTyped for style::values::specified::font::FontSize

Source§

impl ToTyped for FontSizeAdjustFactor

Source§

impl ToTyped for FontSizeKeyword

Source§

impl ToTyped for style::values::specified::font::FontStretch

Source§

impl ToTyped for FontStretchKeyword

Source§

impl ToTyped for style::values::specified::font::FontStyle

Source§

impl ToTyped for FontSynthesis

Source§

impl ToTyped for FontSynthesisStyle

Source§

impl ToTyped for style::values::specified::font::FontWeight

Source§

impl ToTyped for MathDepth

Source§

impl ToTyped for XTextScale

Source§

impl ToTyped for ImageRendering

Source§

impl ToTyped for style::values::specified::length::LengthPercentage

Source§

impl ToTyped for Quotes

Source§

impl ToTyped for OffsetRotateDirection

Source§

impl ToTyped for OutlineStyle

Source§

impl ToTyped for PageName

Source§

impl ToTyped for GridTemplateAreas

Source§

impl ToTyped for PositionAnchorKeyword

Source§

impl ToTyped for PositionTryOrder

Source§

impl ToTyped for DProperty

Source§

impl ToTyped for CaptionSide

Source§

impl ToTyped for HyphenateCharacter

Source§

impl ToTyped for LineBreak

Source§

impl ToTyped for MozControlCharacterVisibility

Source§

impl ToTyped for OverflowWrap

Source§

impl ToTyped for RubyPosition

Source§

impl ToTyped for Spacing

Source§

impl ToTyped for TextAlign

Source§

impl ToTyped for TextAlignKeyword

Source§

impl ToTyped for TextAlignLast

Source§

impl ToTyped for TextBoxEdge

Source§

impl ToTyped for TextDecorationSkipInk

Source§

impl ToTyped for TextEdgeKeyword

Source§

impl ToTyped for style::values::specified::text::TextEmphasisStyle

Source§

impl ToTyped for TextJustify

Source§

impl ToTyped for WordBreak

Source§

impl ToTyped for TransformBox

Source§

impl ToTyped for CursorKind

Source§

impl ToTyped for Inert

Source§

impl ToTyped for MozTheme

Source§

impl ToTyped for PointerEvents

Source§

impl ToTyped for UserFocus

Source§

impl ToTyped for UserSelect

Source§

impl ToTyped for NumericDeclaration

Source§

impl ToTyped for NoCalcNumeric

Source§

impl ToTyped for AbsoluteColor

Source§

impl ToTyped for style::properties::generated::longhands::animation_composition::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_delay::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_direction::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_duration::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_fill_mode::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_iteration_count::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_name::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_play_state::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_range_end::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_range_start::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_timeline::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::animation_timing_function::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::backdrop_filter::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_attachment::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_blend_mode::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_clip::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_image::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_origin::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_position_x::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_position_y::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_repeat::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::background_size::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::box_shadow::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::filter::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_clip::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_composite::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_image::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_mode::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_origin::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_position_x::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_position_y::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_repeat::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::mask_size::SpecifiedValue

Source§

impl ToTyped for ComputedList
where T: ToTyped,

Source§

impl ToTyped for style::properties::generated::longhands::text_shadow::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::transition_behavior::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::transition_delay::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::transition_duration::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::transition_property::SpecifiedValue

Source§

impl ToTyped for style::properties::generated::longhands::transition_timing_function::SpecifiedValue

Source§

impl ToTyped for CustomDeclaration

Source§

impl ToTyped for UnparsedValue

Source§

impl ToTyped for VariableDeclaration

Source§

impl ToTyped for WideKeywordDeclaration

Source§

impl ToTyped for ComputedJustifyItems

Source§

impl ToTyped for style::values::computed::angle::Angle

Source§

impl ToTyped for style::values::computed::animation::AnimationIterationCount

Source§

impl ToTyped for style::values::computed::border::BorderSideWidth
where Au: ToTyped,

Source§

impl ToTyped for style::values::computed::box_::Zoom
where f32: ToTyped,

Source§

impl ToTyped for style::values::computed::corner_shape::CornerShape

Source§

impl ToTyped for style::values::computed::font::FontFamily

Source§

impl ToTyped for FontLanguageOverride

Source§

impl ToTyped for style::values::computed::font::FontSize

Source§

impl ToTyped for style::values::computed::font::FontStretch

Source§

impl ToTyped for style::values::computed::font::FontStyle

Source§

impl ToTyped for style::values::computed::font::FontWeight

Source§

impl ToTyped for CSSPixelLength

Source§

impl ToTyped for style::values::computed::length_percentage::CalcLengthPercentage

Source§

impl ToTyped for style::values::computed::length_percentage::LengthPercentage

Source§

impl ToTyped for style::values::computed::motion::OffsetRotate
where Angle: ToTyped,

Source§

impl ToTyped for style::values::computed::percentage::Percentage

Source§

impl ToTyped for Resolution

Source§

impl ToTyped for Au

Source§

impl ToTyped for style::values::computed::time::Time

Source§

impl ToTyped for Flex

Source§

impl ToTyped for ContentDistribution

Source§

impl ToTyped for ItemPlacement

Source§

impl ToTyped for JustifyItems

Source§

impl ToTyped for SelfAlignment

Source§

impl ToTyped for style::values::specified::angle::Angle

Source§

impl ToTyped for NoCalcAngle

Source§

impl ToTyped for AnimationName

Source§

impl ToTyped for ViewTransitionClassList

Source§

impl ToTyped for ViewTransitionNameKeyword

Source§

impl ToTyped for BackgroundRepeat

Source§

impl ToTyped for BorderImageRepeat

Source§

impl ToTyped for BorderSideOffset
where Length: ToTyped,

Source§

impl ToTyped for style::values::specified::border::BorderSideWidth

Source§

impl ToTyped for Contain

Source§

impl ToTyped for ContainerName

Source§

impl ToTyped for ContainerType

Source§

impl ToTyped for Display

Source§

impl ToTyped for ScrollSnapAlign

Source§

impl ToTyped for ScrollSnapType

Source§

impl ToTyped for ScrollbarGutter

Source§

impl ToTyped for TouchAction

Source§

impl ToTyped for WillChange

Source§

impl ToTyped for style::values::specified::calc::CalcLengthPercentage

Source§

impl ToTyped for CalcNumeric

Source§

impl ToTyped for ColorPropertyValue
where Color: ToTyped,

Source§

impl ToTyped for ColorScheme

Source§

impl ToTyped for FontPalette

Source§

impl ToTyped for FontVariantAlternates

Source§

impl ToTyped for FontVariantEastAsian

Source§

impl ToTyped for FontVariantLigatures

Source§

impl ToTyped for FontVariantNumeric

Source§

impl ToTyped for KeywordInfo

Source§

impl ToTyped for XLang

Source§

impl ToTyped for Length

Source§

impl ToTyped for NoCalcLength

Source§

impl ToTyped for ListStyleType

Source§

impl ToTyped for style::values::specified::motion::OffsetRotate

Source§

impl ToTyped for Integer

Source§

impl ToTyped for NoCalcNumber

Source§

impl ToTyped for Number

Source§

impl ToTyped for NoCalcPercentage

Source§

impl ToTyped for style::values::specified::percentage::Percentage

Source§

impl ToTyped for AnchorNameIdent

Source§

impl ToTyped for GridAutoFlow

Source§

impl ToTyped for MasonryAutoFlow

Source§

impl ToTyped for PositionArea

Source§

impl ToTyped for PositionTryFallbacksList

Source§

impl ToTyped for PositionVisibility

Source§

impl ToTyped for ScopedNameList

Source§

impl ToTyped for Opacity

Source§

impl ToTyped for MozContextProperties

Source§

impl ToTyped for SVGPaintOrder

Source§

impl ToTyped for VectorEffect

Source§

impl ToTyped for style::values::specified::text::LetterSpacing

Source§

impl ToTyped for TextAutospace

Source§

impl ToTyped for TextBoxTrim

Source§

impl ToTyped for TextDecorationLine

Source§

impl ToTyped for TextEdge

Source§

impl ToTyped for TextEmphasisPosition

Source§

impl ToTyped for TextOverflow

Source§

impl ToTyped for TextTransform

Source§

impl ToTyped for TextUnderlinePosition

Source§

impl ToTyped for WordSpacing

Source§

impl ToTyped for NoCalcTime

Source§

impl ToTyped for style::values::specified::time::Time

Source§

impl ToTyped for ScaleFactor

Source§

impl ToTyped for BoolInteger

Source§

impl ToTyped for CustomIdent

Source§

impl ToTyped for KeyframesName

Source§

impl ToTyped for style::custom_properties::SpecifiedValue

Source§

impl ToTyped for style::values::computed::image::Image

Source§

impl ToTyped for style::values::computed::text::LetterSpacing

Source§

impl ToTyped for TimelineName

Source§

impl ToTyped for style::values::specified::image::Image

Source§

impl<'a> ToTyped for Unpacked<'a>

Source§

impl<'a, L: CalcNodeLeaf> ToTyped for CalcNodeWithLevel<'a, L>

Source§

impl<Angle, Factor, Length, Shadow, U> ToTyped for GenericFilter<Angle, Factor, Length, Shadow, U>

Source§

impl<BasicShape, I> ToTyped for GenericShapeOutside<BasicShape, I>

Source§

impl<BasicShape, U> ToTyped for GenericClipPath<BasicShape, U>

Source§

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

Source§

impl<C> ToTyped for GenericCaretColor<C>

Source§

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

Source§

impl<Color, SizeLength, BlurShapeLength, ShapeLength> ToTyped for GenericBoxShadow<Color, SizeLength, BlurShapeLength, ShapeLength>

Source§

impl<Color, SizeLength, ShapeLength> ToTyped for GenericSimpleShadow<Color, SizeLength, ShapeLength>

Source§

impl<Color, Url> ToTyped for GenericSVGPaint<Color, Url>

Source§

impl<Factor: ToTyped> ToTyped for GenericFontSizeAdjust<Factor>

Source§

impl<Fallback> ToTyped for GenericAnchorSizeFunction<Fallback>

Source§

impl<Function> ToTyped for GenericOffsetPath<Function>

Source§

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

Source§

impl<H, V> ToTyped for GenericPosition<H, V>
where H: ToTyped, V: ToTyped,

Source§

impl<H, V, Depth> ToTyped for GenericTransformOrigin<H, V, Depth>

Source§

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

Source§

impl<I> ToTyped for GenericLineClamp<I>
where I: ToTyped,

Source§

impl<I> ToTyped for GenericCounterIncrement<I>

Source§

impl<I> ToTyped for GenericCounterReset<I>

Source§

impl<I> ToTyped for GenericCounterSet<I>

Source§

impl<Image> ToTyped for GenericContent<Image>

Source§

impl<Image> ToTyped for Cursor<Image>

Source§

impl<Integer> ToTyped for GenericGridLine<Integer>

Source§

impl<Integer> ToTyped for GenericHyphenateLimitChars<Integer>

Source§

impl<Integer, Number, LinearStops> ToTyped for TimingFunction<Integer, Number, LinearStops>

Source§

impl<L> ToTyped for GenericContainIntrinsicSize<L>
where L: ToTyped,

Source§

impl<L> ToTyped for GenericTrackBreadth<L>
where L: ToTyped, Flex: ToTyped,

Source§

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

Source§

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

Source§

impl<L> ToTyped for GenericTextDecorationInset<L>
where L: ToTyped,

Source§

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

Source§

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

Source§

impl<L> ToTyped for GenericBorderCornerRadius<L>

Source§

impl<L> ToTyped for GenericBorderSpacing<L>

Source§

impl<L> ToTyped for GenericOverflowClipMargin<L>

Source§

impl<L, I> ToTyped for GenericGridTemplateComponent<L, I>

Source§

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

Source§

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

Source§

impl<L: ToTyped> ToTyped for TrackSize<L>

Source§

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

Source§

impl<LP> ToTyped for GenericMargin<LP>

Source§

impl<LengthPercent> ToTyped for GenericAnimationTimeline<LengthPercent>

Source§

impl<LengthPercent> ToTyped for GenericBackgroundSize<LengthPercent>
where GenericLengthPercentageOrAuto<LengthPercent>: ToTyped,

Source§

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

Source§

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

Source§

impl<LengthPercent> ToTyped for GenericMaxSize<LengthPercent>
where LengthPercent: ToTyped, Box<GenericAnchorSizeFunction<Self>>: ToTyped,

Source§

impl<LengthPercent> ToTyped for GenericSize<LengthPercent>
where LengthPercent: ToTyped, Box<GenericAnchorSizeFunction<Self>>: ToTyped,

Source§

impl<LengthPercent> ToTyped for GenericAnimationRangeEnd<LengthPercent>

Source§

impl<LengthPercent> ToTyped for GenericAnimationRangeStart<LengthPercent>

Source§

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

Source§

impl<LengthPercentage> ToTyped for GenericBaselineShift<LengthPercentage>
where BaselineShiftKeyword: ToTyped, LengthPercentage: ToTyped,

Source§

impl<LengthPercentage> ToTyped for GenericTextIndent<LengthPercentage>

Source§

impl<LengthPercentage, Integer> ToTyped for GenericTrackListValue<LengthPercentage, Integer>
where GenericTrackSize<LengthPercentage>: ToTyped,

Source§

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

Source§

impl<N> ToTyped for GenericAspectRatio<N>

Source§

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

Source§

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

Source§

impl<Number> ToTyped for GenericScale<Number>
where Number: ToTyped,

Source§

impl<Number, Angle> ToTyped for GenericRotate<Number, Angle>

Source§

impl<Number, Integer> ToTyped for GenericInitialLetter<Number, Integer>
where Number: ToTyped, Integer: ToTyped,

Source§

impl<NumberOrPercentage> ToTyped for GenericBorderImageSlice<NumberOrPercentage>

Source§

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

Source§

impl<P, LP> ToTyped for GenericInset<P, LP>

Source§

impl<Percentage> ToTyped for GenericColor<Percentage>

Source§

impl<Percentage, Fallback> ToTyped for GenericAnchorFunction<Percentage, Fallback>

Source§

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

Source§

impl<PositiveInteger> ToTyped for GenericColumnCount<PositiveInteger>

Source§

impl<R> ToTyped for GenericClipRectOrAuto<R>

Source§

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

Source§

impl<S> ToTyped for GenericPageSize<S>

Source§

impl<S> ToTyped for PositionComponent<S>

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_composition::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_delay::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_direction::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_duration::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_fill_mode::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_iteration_count::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_name::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_play_state::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_range_end::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_range_start::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_timeline::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::animation_timing_function::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::backdrop_filter::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_attachment::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_blend_mode::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_clip::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_image::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_origin::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_position_x::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_position_y::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_repeat::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::background_size::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::box_shadow::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::filter::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_clip::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_composite::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_image::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_mode::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_origin::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_position_x::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_position_y::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_repeat::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::mask_size::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::text_shadow::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::transition_behavior::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::transition_delay::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::transition_duration::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::transition_property::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for style::properties::generated::longhands::transition_timing_function::computed_value::OwnedList<T>
where T: ToTyped,

Source§

impl<T> ToTyped for FontSettings<T>

Source§

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

Source§

impl<T> ToTyped for TreeScoped<T>
where T: ToTyped,

Source§

impl<T> ToTyped for Rect<T>

Source§

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

Source§

impl<T: ToTransformComponent> ToTyped for Transform<T>

Source§

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

Source§

impl<U> ToTyped for GenericUrlOrNone<U>