pub trait ToComputedValue {
    type ComputedValue;

    fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue;
    fn from_computed_value(computed: &Self::ComputedValue) -> Self;
}
Expand description

A trait to represent the conversion between computed and specified values.

This trait is derivable with #[derive(ToComputedValue)]. The derived implementation just calls ToComputedValue::to_computed_value on each field of the passed value. The deriving code assumes that if the type isn’t generic, then the trait can be implemented as simple Clone::clone calls, this means that a manual implementation with ComputedValue = Self is bogus if it returns anything else than a clone.

Required Associated Types§

source

type ComputedValue

The computed value type we’re going to be converted to.

Required Methods§

source

fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.

source

fn from_computed_value(computed: &Self::ComputedValue) -> Self

Convert a computed value to specified value form.

This will be used for recascading during animation. Such from_computed_valued values should recompute to the same value.

Implementations on Foreign Types§

source§

impl<A, B> ToComputedValue for (A, B)where
    A: ToComputedValue,
    B: ToComputedValue,

source§

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

source§

impl<T> ToComputedValue for Size2D<T>where
    T: ToComputedValue,

source§

impl<T> ToComputedValue for Vec<T>where
    T: ToComputedValue,

source§

impl<T> ToComputedValue for Box<T>where
    T: ToComputedValue,

source§

impl<T> ToComputedValue for Box<[T]>where
    T: ToComputedValue,

source§

impl ToComputedValue for ()

§

type ComputedValue = ()

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for bool

§

type ComputedValue = bool

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for f32

§

type ComputedValue = f32

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for i32

§

type ComputedValue = i32

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for u8

§

type ComputedValue = u8

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for u16

§

type ComputedValue = u16

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for u32

§

type ComputedValue = u32

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for usize

§

type ComputedValue = usize

source§

fn to_computed_value(&self, _: &Context<'_>) -> Self

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for String

source§

impl ToComputedValue for Box<str>

source§

impl ToComputedValue for AllowedNumericType

Implementors§

source§

impl ToComputedValue for Symbolwhere
    OwnedStr: ToComputedValue<ComputedValue = OwnedStr>,
    CustomIdent: ToComputedValue<ComputedValue = CustomIdent>,

source§

impl ToComputedValue for FontDisplay

source§

impl ToComputedValue for LonghandId

source§

impl ToComputedValue for ShorthandId

source§

impl ToComputedValue for style::properties::longhands::_servo_overflow_clip_box::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::_servo_top_layer::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::align_content::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::align_items::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::align_self::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::animation_direction::single_value::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::animation_fill_mode::single_value::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::animation_play_state::single_value::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::backface_visibility::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::background_attachment::single_value::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::background_clip::single_value::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::background_origin::single_value::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::border_collapse::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::box_sizing::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::column_span::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::direction::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::empty_cells::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::flex_direction::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::flex_wrap::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::font_variant_caps::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::justify_content::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::list_style_position::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::list_style_type::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::mix_blend_mode::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::pointer_events::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::position::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::table_layout::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::text_decoration_style::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::text_rendering::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::unicode_bidi::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::visibility::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::white_space::computed_value::T

source§

impl ToComputedValue for style::properties::longhands::writing_mode::computed_value::T

source§

impl ToComputedValue for Impossible

source§

impl ToComputedValue for FillRule

source§

impl ToComputedValue for ShapeBox

source§

impl ToComputedValue for ShapeGeometryBoxwhere
    ShapeBox: ToComputedValue<ComputedValue = ShapeBox>,

source§

impl ToComputedValue for VerticalAlignKeyword

source§

impl ToComputedValue for ColorSpace

source§

impl ToComputedValue for HueInterpolationMethod

source§

impl ToComputedValue for StepPosition

source§

impl ToComputedValue for TimingKeyword

source§

impl ToComputedValue for CounterStylewhere
    CustomIdent: ToComputedValue<ComputedValue = CustomIdent>,
    SymbolsType: ToComputedValue<ComputedValue = SymbolsType>,
    Symbols: ToComputedValue<ComputedValue = Symbols>,

source§

impl ToComputedValue for SymbolsType

source§

impl ToComputedValue for GradientCompatMode

source§

impl ToComputedValue for ShapeExtent

source§

impl ToComputedValue for RaySize

source§

impl ToComputedValue for TransformStyle

source§

impl ToComputedValue for BackgroundRepeatKeyword

source§

impl ToComputedValue for BorderImageRepeatKeyword

source§

impl ToComputedValue for BorderSideWidth

source§

impl ToComputedValue for BorderStyle

source§

impl ToComputedValue for AnimationTimelinewhere
    TimelineName: ToComputedValue<ComputedValue = TimelineName>,
    ScrollAxis: ToComputedValue<ComputedValue = ScrollAxis>,
    Scroller: ToComputedValue<ComputedValue = Scroller>,

source§

impl ToComputedValue for Appearance

source§

impl ToComputedValue for BreakBetween

source§

impl ToComputedValue for BreakWithin

source§

impl ToComputedValue for SpecifiedClear

source§

impl ToComputedValue for ContentVisibility

source§

impl ToComputedValue for SpecifiedFloat

source§

impl ToComputedValue for Overflow

source§

impl ToComputedValue for OverflowAnchor

source§

impl ToComputedValue for OverflowClipBox

source§

impl ToComputedValue for OverscrollBehavior

source§

impl ToComputedValue for Resize

source§

impl ToComputedValue for ScrollAxis

source§

impl ToComputedValue for ScrollSnapAlignKeyword

source§

impl ToComputedValue for ScrollSnapAxis

source§

impl ToComputedValue for ScrollSnapStop

source§

impl ToComputedValue for ScrollSnapStrictness

source§

impl ToComputedValue for Scroller

source§

impl ToComputedValue for TransitionPropertywhere
    ShorthandId: ToComputedValue<ComputedValue = ShorthandId>,
    LonghandId: ToComputedValue<ComputedValue = LonghandId>,
    CustomPropertyName: ToComputedValue<ComputedValue = CustomPropertyName>,
    CustomIdent: ToComputedValue<ComputedValue = CustomIdent>,

source§

impl ToComputedValue for Color

source§

impl ToComputedValue for PrintColorAdjust

source§

impl ToComputedValue for AngleOrPercentage

source§

impl ToComputedValue for NumberOrPercentage

source§

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

source§

impl ToComputedValue for FontFeatureSettings

source§

impl ToComputedValue for FontLanguageOverride

source§

impl ToComputedValue for FontSize

source§

impl ToComputedValue for FontSizeAdjust

source§

impl ToComputedValue for FontSizeKeyword

source§

impl ToComputedValue for FontStretch

source§

impl ToComputedValue for FontStyle

source§

impl ToComputedValue for FontVariantAlternates

source§

impl ToComputedValue for FontVariantEastAsian

source§

impl ToComputedValue for FontVariantLigatures

source§

impl ToComputedValue for FontVariantNumeric

source§

impl ToComputedValue for FontVariationSettings

source§

impl ToComputedValue for FontWeight

source§

impl ToComputedValue for ImageRendering

source§

impl ToComputedValue for LineDirection

source§

impl ToComputedValue for MozImageRect

source§

impl ToComputedValue for AbsoluteLength

source§

impl ToComputedValue for Length

source§

impl ToComputedValue for LengthPercentage

source§

impl ToComputedValue for NoCalcLength

source§

impl ToComputedValue for Quoteswhere
    QuoteList: ToComputedValue<ComputedValue = QuoteList>,

source§

impl ToComputedValue for OutlineStylewhere
    BorderStyle: ToComputedValue<ComputedValue = BorderStyle>,

source§

impl ToComputedValue for PageNamewhere
    CustomIdent: ToComputedValue<ComputedValue = CustomIdent>,

source§

impl ToComputedValue for GridTemplateAreaswhere
    TemplateAreasArc: ToComputedValue<ComputedValue = TemplateAreasArc>,

source§

impl ToComputedValue for HorizontalPositionKeyword

source§

impl ToComputedValue for MasonryItemOrder

source§

impl ToComputedValue for MasonryPlacement

source§

impl ToComputedValue for VerticalPositionKeyword

source§

impl ToComputedValue for Resolution

source§

impl ToComputedValue for DPropertywhere
    SVGPathData: ToComputedValue<ComputedValue = SVGPathData>,

source§

impl ToComputedValue for IsAbsolute

source§

impl ToComputedValue for PathCommandwhere
    CoordPair: ToComputedValue<ComputedValue = CoordPair>,
    IsAbsolute: ToComputedValue<ComputedValue = IsAbsolute>,
    CSSFloat: ToComputedValue<ComputedValue = CSSFloat>,
    ArcFlag: ToComputedValue<ComputedValue = ArcFlag>,

source§

impl ToComputedValue for CaptionSide

source§

impl ToComputedValue for HyphenateCharacterwhere
    OwnedStr: ToComputedValue<ComputedValue = OwnedStr>,

source§

impl ToComputedValue for LineBreak

source§

impl ToComputedValue for MozControlCharacterVisibility

source§

impl ToComputedValue for OverflowWrap

source§

impl ToComputedValue for RubyPosition

source§

impl ToComputedValue for TextAlign

source§

impl ToComputedValue for TextAlignKeyword

source§

impl ToComputedValue for TextAlignLast

source§

impl ToComputedValue for TextDecorationSkipInk

source§

impl ToComputedValue for TextEmphasisFillMode

source§

impl ToComputedValue for TextEmphasisHorizontalWritingModeValue

source§

impl ToComputedValue for TextEmphasisShapeKeyword

source§

impl ToComputedValue for TextEmphasisStyle

source§

impl ToComputedValue for TextEmphasisVerticalWritingModeValue

source§

impl ToComputedValue for TextJustify

source§

impl ToComputedValue for TextOverflowSidewhere
    OwnedStr: ToComputedValue<ComputedValue = OwnedStr>,

source§

impl ToComputedValue for TextTransformCase

source§

impl ToComputedValue for WordBreak

source§

impl ToComputedValue for CursorKind

source§

impl ToComputedValue for UserSelect

source§

impl ToComputedValue for FontFamilyNameSyntax

source§

impl ToComputedValue for GenericFontFamily

source§

impl ToComputedValue for SingleFontFamilywhere
    FamilyName: ToComputedValue<ComputedValue = FamilyName>,
    GenericFontFamily: ToComputedValue<ComputedValue = GenericFontFamily>,

source§

impl ToComputedValue for Symbolswhere
    OwnedSlice<Symbol>: ToComputedValue<ComputedValue = OwnedSlice<Symbol>>,

source§

impl ToComputedValue for style::properties::longhands::animation_delay::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_direction::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_duration::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_fill_mode::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_iteration_count::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_name::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_play_state::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_timeline::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::animation_timing_function::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_attachment::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_clip::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_image::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_origin::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_position_x::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_position_y::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_repeat::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::background_size::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::box_shadow::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::filter::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::text_shadow::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::transition_delay::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::transition_duration::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::transition_property::SpecifiedValue

source§

impl ToComputedValue for style::properties::longhands::transition_timing_function::SpecifiedValue

source§

impl ToComputedValue for OwnedStr

source§

impl ToComputedValue for Pathwhere
    FillRule: ToComputedValue<ComputedValue = FillRule>,
    SVGPathData: ToComputedValue<ComputedValue = SVGPathData>,

source§

impl ToComputedValue for ColorInterpolationMethodwhere
    ColorSpace: ToComputedValue<ComputedValue = ColorSpace>,
    HueInterpolationMethod: ToComputedValue<ComputedValue = HueInterpolationMethod>,

source§

impl ToComputedValue for FontTagwhere
    u32: ToComputedValue<ComputedValue = u32>,

source§

impl ToComputedValue for LineNameListwhere
    OwnedSlice<OwnedSlice<CustomIdent>>: ToComputedValue<ComputedValue = OwnedSlice<OwnedSlice<CustomIdent>>>,
    usize: ToComputedValue<ComputedValue = usize>,

source§

impl ToComputedValue for PaintWorkletwhere
    Atom: ToComputedValue<ComputedValue = Atom>,

source§

impl ToComputedValue for Angle

source§

impl ToComputedValue for BackgroundRepeatwhere
    BackgroundRepeatKeyword: ToComputedValue<ComputedValue = BackgroundRepeatKeyword>,

source§

impl ToComputedValue for BorderImageRepeatwhere
    BorderImageRepeatKeyword: ToComputedValue<ComputedValue = BorderImageRepeatKeyword>,

source§

impl ToComputedValue for AnimationNamewhere
    KeyframesName: ToComputedValue<ComputedValue = KeyframesName>,

source§

impl ToComputedValue for Containwhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for ContainerNamewhere
    OwnedSlice<CustomIdent>: ToComputedValue<ComputedValue = OwnedSlice<CustomIdent>>,

source§

impl ToComputedValue for ContainerTypewhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for Displaywhere
    u16: ToComputedValue<ComputedValue = u16>,

source§

impl ToComputedValue for ScrollSnapAlignwhere
    ScrollSnapAlignKeyword: ToComputedValue<ComputedValue = ScrollSnapAlignKeyword>,

source§

impl ToComputedValue for ScrollSnapTypewhere
    ScrollSnapAxis: ToComputedValue<ComputedValue = ScrollSnapAxis>,
    ScrollSnapStrictness: ToComputedValue<ComputedValue = ScrollSnapStrictness>,

source§

impl ToComputedValue for ScrollbarGutterwhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for TouchActionwhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for WillChangewhere
    OwnedSlice<CustomIdent>: ToComputedValue<ComputedValue = OwnedSlice<CustomIdent>>,
    WillChangeBits: ToComputedValue<ComputedValue = WillChangeBits>,

source§

impl ToComputedValue for WillChangeBitswhere
    u16: ToComputedValue<ComputedValue = u16>,

source§

impl ToComputedValue for ColorPropertyValue

source§

impl ToComputedValue for ColorSchemewhere
    ArcSlice<CustomIdent>: ToComputedValue<ComputedValue = ArcSlice<CustomIdent>>,
    ColorSchemeFlags: ToComputedValue<ComputedValue = ColorSchemeFlags>,

source§

impl ToComputedValue for ColorSchemeFlagswhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for MozFontSmoothingBackgroundColor

source§

impl ToComputedValue for NonNegativeFactor

source§

impl ToComputedValue for ZeroToOneFactor

source§

impl ToComputedValue for FontSynthesiswhere
    bool: ToComputedValue<ComputedValue = bool>,

source§

impl ToComputedValue for KeywordInfowhere
    FontSizeKeyword: ToComputedValue<ComputedValue = FontSizeKeyword>,
    f32: ToComputedValue<ComputedValue = f32>,
    CSSPixelLength: ToComputedValue<ComputedValue = CSSPixelLength>,

source§

impl ToComputedValue for MozScriptMinSize

source§

impl ToComputedValue for MozScriptSizeMultiplierwhere
    f32: ToComputedValue<ComputedValue = f32>,

source§

impl ToComputedValue for XLangwhere
    Atom: ToComputedValue<ComputedValue = Atom>,

source§

impl ToComputedValue for XTextZoomwhere
    bool: ToComputedValue<ComputedValue = bool>,

source§

impl ToComputedValue for QuoteListwhere
    ArcSlice<QuotePair>: ToComputedValue<ComputedValue = ArcSlice<QuotePair>>,

source§

impl ToComputedValue for QuotePairwhere
    OwnedStr: ToComputedValue<ComputedValue = OwnedStr>,

source§

impl ToComputedValue for OffsetRotate

source§

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

source§

impl ToComputedValue for GridAutoFlowwhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for MasonryAutoFlowwhere
    MasonryPlacement: ToComputedValue<ComputedValue = MasonryPlacement>,
    MasonryItemOrder: ToComputedValue<ComputedValue = MasonryItemOrder>,

source§

impl ToComputedValue for NamedAreawhere
    Atom: ToComputedValue<ComputedValue = Atom>,
    UnsignedRange: ToComputedValue<ComputedValue = UnsignedRange>,

source§

impl ToComputedValue for TemplateAreaswhere
    OwnedSlice<NamedArea>: ToComputedValue<ComputedValue = OwnedSlice<NamedArea>>,
    OwnedSlice<OwnedStr>: ToComputedValue<ComputedValue = OwnedSlice<OwnedStr>>,
    u32: ToComputedValue<ComputedValue = u32>,

source§

impl ToComputedValue for TemplateAreasArcwhere
    Arc<TemplateAreas>: ToComputedValue<ComputedValue = Arc<TemplateAreas>>,

source§

impl ToComputedValue for UnsignedRangewhere
    u32: ToComputedValue<ComputedValue = u32>,

source§

impl ToComputedValue for Attrwhere
    Prefix: ToComputedValue<ComputedValue = Prefix>,
    Namespace: ToComputedValue<ComputedValue = Namespace>,
    Atom: ToComputedValue<ComputedValue = Atom>,

source§

impl ToComputedValue for Integer

source§

impl ToComputedValue for Number

source§

impl ToComputedValue for Opacity

source§

impl ToComputedValue for ContextPropertyBitswhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for MozContextPropertieswhere
    ArcSlice<CustomIdent>: ToComputedValue<ComputedValue = ArcSlice<CustomIdent>>,
    ContextPropertyBits: ToComputedValue<ComputedValue = ContextPropertyBits>,

source§

impl ToComputedValue for SVGPaintOrderwhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for ArcFlagwhere
    bool: ToComputedValue<ComputedValue = bool>,

source§

impl ToComputedValue for CoordPairwhere
    CSSFloat: ToComputedValue<ComputedValue = CSSFloat>,

source§

impl ToComputedValue for SVGPathDatawhere
    ArcSlice<PathCommand>: ToComputedValue<ComputedValue = ArcSlice<PathCommand>>,

source§

impl ToComputedValue for TextDecorationLinewhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for TextEmphasisPositionwhere
    TextEmphasisHorizontalWritingModeValue: ToComputedValue<ComputedValue = TextEmphasisHorizontalWritingModeValue>,
    TextEmphasisVerticalWritingModeValue: ToComputedValue<ComputedValue = TextEmphasisVerticalWritingModeValue>,

source§

impl ToComputedValue for TextOverflow

source§

impl ToComputedValue for TextTransformwhere
    TextTransformCase: ToComputedValue<ComputedValue = TextTransformCase>,
    TextTransformOther: ToComputedValue<ComputedValue = TextTransformOther>,

source§

impl ToComputedValue for TextTransformOtherwhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for TextUnderlinePositionwhere
    u8: ToComputedValue<ComputedValue = u8>,

source§

impl ToComputedValue for Time

source§

impl ToComputedValue for MozForceBrokenImageIconwhere
    bool: ToComputedValue<ComputedValue = bool>,

source§

impl ToComputedValue for AtomStringwhere
    Atom: ToComputedValue<ComputedValue = Atom>,

source§

impl ToComputedValue for Auto

source§

impl ToComputedValue for CustomIdentwhere
    Atom: ToComputedValue<ComputedValue = Atom>,

source§

impl ToComputedValue for KeyframesNamewhere
    TimelineOrKeyframesName: ToComputedValue<ComputedValue = TimelineOrKeyframesName>,

source§

impl ToComputedValue for None_

source§

impl ToComputedValue for TimelineNamewhere
    TimelineOrKeyframesName: ToComputedValue<ComputedValue = TimelineOrKeyframesName>,

source§

impl ToComputedValue for TimelineOrKeyframesNamewhere
    Atom: ToComputedValue<ComputedValue = Atom>,

source§

impl ToComputedValue for FamilyNamewhere
    Atom: ToComputedValue<ComputedValue = Atom>,
    FontFamilyNameSyntax: ToComputedValue<ComputedValue = FontFamilyNameSyntax>,

source§

impl ToComputedValue for style::values::computed::font::FontFamilywhere
    FontFamilyList: ToComputedValue<ComputedValue = FontFamilyList>,
    bool: ToComputedValue<ComputedValue = bool>,

source§

impl ToComputedValue for FontFamilyListwhere
    Box<[SingleFontFamily]>: ToComputedValue<ComputedValue = Box<[SingleFontFamily]>>,

source§

impl ToComputedValue for CSSPixelLengthwhere
    CSSFloat: ToComputedValue<ComputedValue = CSSFloat>,

source§

impl ToComputedValue for style::values::computed::percentage::Percentagewhere
    CSSFloat: ToComputedValue<ComputedValue = CSSFloat>,

source§

impl ToComputedValue for SpecifiedUrl

source§

impl ToComputedValue for Atom

source§

impl ToComputedValue for Namespace

source§

impl ToComputedValue for Prefix

source§

impl ToComputedValue for BoxShadow

source§

impl ToComputedValue for SimpleShadow

source§

impl ToComputedValue for SpecifiedFontStyle

source§

impl ToComputedValue for ImageSet

source§

impl ToComputedValue for PageSize

source§

impl ToComputedValue for LetterSpacing

source§

impl ToComputedValue for LineHeight

source§

impl ToComputedValue for WordSpacing

source§

impl ToComputedValue for AtomIdent

source§

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

source§

impl<Angle> ToComputedValue for GenericOffsetPath<Angle>where
    Angle: ToComputedValue,

source§

impl<Angle> ToComputedValue for RayFunction<Angle>where
    Angle: ToComputedValue,

source§

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

source§

impl<Angle, Number, Length, Integer, LengthPercentage> ToComputedValue for GenericTransformOperation<Angle, Number, Length, Integer, LengthPercentage>where
    Angle: Zero + ToComputedValue,
    LengthPercentage: Zero + ToComputedValue,
    Number: PartialEq + ToComputedValue,
    <Angle as ToComputedValue>::ComputedValue: Zero,
    <LengthPercentage as ToComputedValue>::ComputedValue: Zero,
    <Number as ToComputedValue>::ComputedValue: PartialEq,
    Length: ToComputedValue,
    Integer: ToComputedValue,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<Color, Percentage> ToComputedValue for GenericColorMix<Color, Percentage>where
    Color: ToComputedValue,
    Percentage: ToComputedValue,

source§

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

source§

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

source§

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

source§

impl<G, MozImageRect, ImageUrl, Color, Percentage, Resolution> ToComputedValue for GenericImage<G, MozImageRect, ImageUrl, Color, Percentage, Resolution>where
    G: ToComputedValue,
    MozImageRect: ToComputedValue,
    ImageUrl: ToComputedValue,
    Color: ToComputedValue,
    Percentage: ToComputedValue,
    Resolution: ToComputedValue,
    Box<GenericImageSet<Self, Resolution>>: ToComputedValue<ComputedValue = Box<GenericImageSet<GenericImage<<G as ToComputedValue>::ComputedValue, <MozImageRect as ToComputedValue>::ComputedValue, <ImageUrl as ToComputedValue>::ComputedValue, <Color as ToComputedValue>::ComputedValue, <Percentage as ToComputedValue>::ComputedValue, <Resolution as ToComputedValue>::ComputedValue>, <Resolution as ToComputedValue>::ComputedValue>>>,

source§

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

source§

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

source§

impl<H, V, LengthPercentage, NonNegativeLengthPercentage> ToComputedValue for GenericBasicShape<H, V, LengthPercentage, NonNegativeLengthPercentage>where
    H: ToComputedValue,
    V: ToComputedValue,
    LengthPercentage: ToComputedValue,
    NonNegativeLengthPercentage: ToComputedValue,

source§

impl<H, V, NonNegativeLengthPercentage> ToComputedValue for Circle<H, V, NonNegativeLengthPercentage>where
    H: ToComputedValue,
    V: ToComputedValue,
    NonNegativeLengthPercentage: ToComputedValue,

source§

impl<H, V, NonNegativeLengthPercentage> ToComputedValue for Ellipse<H, V, NonNegativeLengthPercentage>where
    H: ToComputedValue,
    V: ToComputedValue,
    NonNegativeLengthPercentage: ToComputedValue,

source§

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

source§

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

source§

impl<I> ToComputedValue for GenericCounterIncrement<I>where
    I: ToComputedValue,

source§

impl<I> ToComputedValue for GenericCounterReset<I>where
    I: ToComputedValue,

source§

impl<I> ToComputedValue for GenericCounterSet<I>where
    I: ToComputedValue,

source§

impl<I> ToComputedValue for GenericCounters<I>where
    I: ToComputedValue,

source§

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

source§

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

source§

impl<Image> ToComputedValue for GenericCursor<Image>where
    Image: ToComputedValue,

source§

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

source§

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

source§

impl<Image, Number> ToComputedValue for GenericCursorImage<Image, Number>where
    Image: ToComputedValue,
    Number: ToComputedValue,

source§

impl<Image, Resolution> ToComputedValue for GenericImageSetItem<Image, Resolution>where
    Image: ToComputedValue,
    Resolution: ToComputedValue,

source§

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

source§

impl<Integer> ToComputedValue for GenericCounterPair<Integer>where
    Integer: ToComputedValue,

source§

impl<Integer> ToComputedValue for FeatureTagValue<Integer>where
    Integer: ToComputedValue,

source§

impl<Integer> ToComputedValue for GenericGridLine<Integer>where
    Integer: ToComputedValue,

source§

impl<Integer, Number> ToComputedValue for TimingFunction<Integer, Number>where
    Integer: ToComputedValue,
    Number: ToComputedValue,

source§

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

source§

impl<L> ToComputedValue for GenericTrackSize<L>where
    L: ToComputedValue,

source§

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

source§

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

source§

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

source§

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

source§

impl<L> ToComputedValue for BorderSpacing<L>where
    L: ToComputedValue,

source§

impl<L> ToComputedValue for GenericBorderCornerRadius<L>where
    L: ToComputedValue,

source§

impl<L> ToComputedValue for style::values::generics::size::Size2D<L>where
    L: ToComputedValue,

source§

impl<L, I> ToComputedValue for GenericGridTemplateComponent<L, I>where
    L: ToComputedValue,
    I: ToComputedValue,
    Box<GenericTrackList<L, I>>: ToComputedValue<ComputedValue = Box<GenericTrackList<<L as ToComputedValue>::ComputedValue, <I as ToComputedValue>::ComputedValue>>>,

source§

impl<L, I> ToComputedValue for GenericTrackRepeat<L, I>where
    L: ToComputedValue,
    I: ToComputedValue,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<LengthPercentage> ToComputedValue for GenericBorderRadius<LengthPercentage>where
    LengthPercentage: ToComputedValue,

source§

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

source§

impl<LengthPercentage, Integer> ToComputedValue for GenericTrackList<LengthPercentage, Integer>where
    LengthPercentage: ToComputedValue,
    Integer: ToComputedValue,

source§

impl<LengthPercentage, Length> ToComputedValue for GenericTranslate<LengthPercentage, Length>where
    LengthPercentage: Zero + ToComputedValue,
    Length: Zero + ToComputedValue,
    <LengthPercentage as ToComputedValue>::ComputedValue: Zero,
    <Length as ToComputedValue>::ComputedValue: Zero,

source§

impl<LengthPercentage, NonNegativeLengthPercentage> ToComputedValue for InsetRect<LengthPercentage, NonNegativeLengthPercentage>where
    LengthPercentage: ToComputedValue,
    NonNegativeLengthPercentage: ToComputedValue,

§

type ComputedValue = InsetRect<<LengthPercentage as ToComputedValue>::ComputedValue, <NonNegativeLengthPercentage as ToComputedValue>::ComputedValue>

source§

impl<LineDirection, LengthPercentage, NonNegativeLength, NonNegativeLengthPercentage, Position, Angle, AngleOrPercentage, Color> ToComputedValue for GenericGradient<LineDirection, LengthPercentage, NonNegativeLength, NonNegativeLengthPercentage, Position, Angle, AngleOrPercentage, Color>where
    LineDirection: ToComputedValue,
    LengthPercentage: ToComputedValue,
    NonNegativeLength: ToComputedValue,
    NonNegativeLengthPercentage: ToComputedValue,
    Position: ToComputedValue,
    Angle: ToComputedValue,
    AngleOrPercentage: ToComputedValue,
    Color: ToComputedValue,

§

type ComputedValue = GenericGradient<<LineDirection as ToComputedValue>::ComputedValue, <LengthPercentage as ToComputedValue>::ComputedValue, <NonNegativeLength as ToComputedValue>::ComputedValue, <NonNegativeLengthPercentage as ToComputedValue>::ComputedValue, <Position as ToComputedValue>::ComputedValue, <Angle as ToComputedValue>::ComputedValue, <AngleOrPercentage as ToComputedValue>::ComputedValue, <Color as ToComputedValue>::ComputedValue>

source§

impl<N> ToComputedValue for PreferredRatio<N>where
    N: ToComputedValue,

source§

impl<N> ToComputedValue for GenericAspectRatio<N>where
    N: ToComputedValue,

source§

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

source§

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

source§

impl<NonNegativeLength> ToComputedValue for GenericCircle<NonNegativeLength>where
    NonNegativeLength: ToComputedValue,

source§

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

§

type ComputedValue = GenericEndingShape<<NonNegativeLength as ToComputedValue>::ComputedValue, <NonNegativeLengthPercentage as ToComputedValue>::ComputedValue>

source§

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

§

type ComputedValue = GenericShapeRadius<<NonNegativeLengthPercentage as ToComputedValue>::ComputedValue>

source§

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

§

type ComputedValue = GenericEllipse<<NonNegativeLengthPercentage as ToComputedValue>::ComputedValue>

source§

impl<Number> ToComputedValue for AnimationIterationCount<Number>where
    Number: ToComputedValue,

source§

impl<Number> ToComputedValue for GenericFontSizeAdjust<Number>where
    Number: ToComputedValue,

source§

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

source§

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

source§

impl<Number, Angle> ToComputedValue for GenericRotate<Number, Angle>where
    Number: ToComputedValue,
    Angle: ToComputedValue,

source§

impl<Number, Integer> ToComputedValue for InitialLetter<Number, Integer>where
    Number: ToComputedValue,
    Integer: ToComputedValue,

source§

impl<NumberOrPercentage> ToComputedValue for GenericBorderImageSlice<NumberOrPercentage>where
    NumberOrPercentage: ToComputedValue,

source§

impl<NumberOrPercentage, MozImageRectUrl> ToComputedValue for GenericMozImageRect<NumberOrPercentage, MozImageRectUrl>where
    NumberOrPercentage: ToComputedValue,
    MozImageRectUrl: ToComputedValue,

§

type ComputedValue = GenericMozImageRect<<NumberOrPercentage as ToComputedValue>::ComputedValue, <MozImageRectUrl as ToComputedValue>::ComputedValue>

source§

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

source§

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

source§

impl<PositiveInteger> ToComputedValue for ColumnCount<PositiveInteger>where
    PositiveInteger: ToComputedValue,

source§

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

source§

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

source§

impl<S> ToComputedValue for OriginComponent<S>where
    S: Side,

source§

impl<S: Side> ToComputedValue for PositionComponent<S>

source§

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

source§

impl<T> ToComputedValue for Arc<T>where
    T: ToComputedValue<ComputedValue = T>,

source§

impl<T> ToComputedValue for ArcSlice<T>where
    T: ToComputedValue<ComputedValue = T>,

source§

impl<T> ToComputedValue for OwnedSlice<T>where
    T: ToComputedValue,

source§

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

source§

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

source§

impl<T> ToComputedValue for Rect<T>where
    T: ToComputedValue,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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