pub trait ToComputedValue {
    type ComputedValue;

    // Required methods
    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 Box<T>where T: ToComputedValue,

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<T> ToComputedValue for Arc<T>where T: ToComputedValue<ComputedValue = T>,

§

type ComputedValue = Arc<T>

source§

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

source§

fn from_computed_value(computed: &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 bool

§

type ComputedValue = bool

source§

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

source§

fn from_computed_value(other: &Self) -> Self

source§

impl ToComputedValue for AllowedNumericType

source§

impl ToComputedValue for Box<str>

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<T> ToComputedValue for Option<T>where T: ToComputedValue,

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 usize

§

type ComputedValue = usize

source§

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

source§

fn from_computed_value(other: &Self) -> Self

source§

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

source§

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

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 String

source§

impl ToComputedValue for ()

§

type ComputedValue = ()

source§

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

source§

fn from_computed_value(other: &Self) -> Self

source§

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

Implementors§

source§

impl ToComputedValue for ColorSpace

source§

impl ToComputedValue for HueInterpolationMethod

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::generated::longhands::_servo_overflow_clip_box::computed_value::T

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl ToComputedValue for Multiplier

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 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 PageOrientation

source§

impl ToComputedValue for TransformStyle

source§

impl ToComputedValue for AnimationComposition

source§

impl ToComputedValue for AnimationDirection

source§

impl ToComputedValue for AnimationFillMode

source§

impl ToComputedValue for AnimationIterationCount

source§

impl ToComputedValue for AnimationPlayState

source§

impl ToComputedValue for ScrollAxis

source§

impl ToComputedValue for Scroller

source§

impl ToComputedValue for TransitionPropertywhere NonCustomPropertyId: ToComputedValue<ComputedValue = NonCustomPropertyId>, Atom: ToComputedValue<ComputedValue = Atom>, CustomIdent: ToComputedValue<ComputedValue = CustomIdent>,

source§

impl ToComputedValue for BackgroundRepeatKeyword

source§

impl ToComputedValue for BasicShapeRect

source§

impl ToComputedValue for BorderImageRepeatKeyword

source§

impl ToComputedValue for BorderStyle

source§

impl ToComputedValue for LineWidth

source§

impl ToComputedValue for Appearance

source§

impl ToComputedValue for BaselineSource

source§

impl ToComputedValue for BreakBetween

source§

impl ToComputedValue for BreakWithin

source§

impl ToComputedValue for SpecifiedClear

source§

impl ToComputedValue for ContainerType

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 ScrollSnapAlignKeyword

source§

impl ToComputedValue for ScrollSnapAxis

source§

impl ToComputedValue for ScrollSnapStop

source§

impl ToComputedValue for ScrollSnapStrictness

source§

impl ToComputedValue for Zoom

source§

impl ToComputedValue for Color

source§

impl ToComputedValue for ForcedColorAdjust

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 FontSize

source§

impl ToComputedValue for FontSizeKeyword

source§

impl ToComputedValue for FontStretch

source§

impl ToComputedValue for FontStyle

source§

impl ToComputedValue for FontSynthesis

source§

impl ToComputedValue for FontWeight

source§

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

source§

impl ToComputedValue for XTextScale

source§

impl ToComputedValue for ImageRendering

source§

impl ToComputedValue for LineDirection

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 CoordBox

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 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 TextEmphasisShapeKeyword

source§

impl ToComputedValue for TextEmphasisStyle

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 TransformBox

source§

impl ToComputedValue for CursorKind

source§

impl ToComputedValue for MozTheme

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 ColorInterpolationMethodwhere ColorSpace: ToComputedValue<ComputedValue = ColorSpace>, HueInterpolationMethod: ToComputedValue<ComputedValue = HueInterpolationMethod>,

source§

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

source§

impl ToComputedValue for VariableValue

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl ToComputedValue for OwnedStr

source§

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

source§

impl ToComputedValue for ColorMixFlags

source§

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

source§

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

source§

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

source§

impl ToComputedValue for Angle

source§

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

source§

impl ToComputedValue for ScrollFunctionwhere Scroller: ToComputedValue<ComputedValue = Scroller>, ScrollAxis: ToComputedValue<ComputedValue = ScrollAxis>,

source§

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

source§

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

source§

impl ToComputedValue for BorderSideWidth

source§

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

source§

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

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 NonNegativeFactor

source§

impl ToComputedValue for ZeroToOneFactor

source§

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

source§

impl ToComputedValue for FontVariantAlternateswhere OwnedSlice<VariantAlternates>: ToComputedValue<ComputedValue = OwnedSlice<VariantAlternates>>,

source§

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

source§

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

source§

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

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 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 Resolution

source§

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

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 u8: ToComputedValue<ComputedValue = u8>,

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 BoolIntegerwhere bool: ToComputedValue<ComputedValue = bool>,

source§

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

source§

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

source§

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

source§

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

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 FontLanguageOverridewhere u32: ToComputedValue<ComputedValue = u32>,

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 TimingFunction

source§

impl ToComputedValue for BoxShadow

source§

impl ToComputedValue for SimpleShadow

source§

impl ToComputedValue for FontSizeAdjust

source§

impl ToComputedValue for LineHeight

source§

impl ToComputedValue for SpecifiedFontStyle

source§

impl ToComputedValue for ImageSet

source§

impl ToComputedValue for PageSize

source§

impl ToComputedValue for LetterSpacing

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, 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 + ZeroNoPercent + ToComputedValue, Number: PartialEq + ToComputedValue, <Angle as ToComputedValue>::ComputedValue: Zero, <LengthPercentage as ToComputedValue>::ComputedValue: Zero + ZeroNoPercent, <Number as ToComputedValue>::ComputedValue: PartialEq, Length: ToComputedValue, Integer: ToComputedValue,

source§

impl<Angle, Position> ToComputedValue for GenericRayFunction<Angle, Position>where Angle: ToComputedValue, Position: 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<Component> ToComputedValue for Value<Component>where Component: ToComputedValue,

source§

impl<Component> ToComputedValue for ComponentList<Component>where Component: ToComputedValue,

source§

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

source§

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

source§

impl<G, ImageUrl, Color, Percentage, Resolution> ToComputedValue for GenericImage<G, ImageUrl, Color, Percentage, Resolution>where G: ToComputedValue, ImageUrl: ToComputedValue, Color: ToComputedValue, Percentage: ToComputedValue, Resolution: ToComputedValue, Box<GenericImageSet<Self, Resolution>>: ToComputedValue<ComputedValue = Box<GenericImageSet<GenericImage<<G 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 GenericOffsetPosition<H, V>where H: ToComputedValue, V: ToComputedValue,

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<I> ToComputedValue for GenericContentItem<I>where I: ToComputedValue,

source§

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

source§

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

source§

impl<I> ToComputedValue for GenericLineClamp<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> ToComputedValue for GenericLineNameList<I>where I: ToComputedValue,

source§

impl<I> ToComputedValue for GenericNameRepeat<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<L> ToComputedValue for GenericContainIntrinsicSize<L>where L: 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<Length, Number, Percentage, LengthPercentage, Color, Image, Url, Integer, Angle, Time, Resolution, TransformFunction> ToComputedValue for GenericValueComponent<Length, Number, Percentage, LengthPercentage, Color, Image, Url, Integer, Angle, Time, Resolution, TransformFunction>where Length: ToComputedValue, Number: ToComputedValue, Percentage: ToComputedValue, LengthPercentage: ToComputedValue, Color: ToComputedValue, Image: ToComputedValue, Url: ToComputedValue, Integer: ToComputedValue, Angle: ToComputedValue, Time: ToComputedValue, Resolution: ToComputedValue, TransformFunction: ToComputedValue,

source§

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

source§

impl<LengthPercent> ToComputedValue for GenericAnimationTimeline<LengthPercent>where LengthPercent: 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<LengthPercent> ToComputedValue for GenericViewFunction<LengthPercent>where LengthPercent: ToComputedValue,

source§

impl<LengthPercent> ToComputedValue for GenericViewTimelineInset<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> ToComputedValue for GenericTextIndent<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 + ZeroNoPercent + ToComputedValue, Length: Zero + ToComputedValue, <LengthPercentage as ToComputedValue>::ComputedValue: Zero + ZeroNoPercent, <Length as ToComputedValue>::ComputedValue: Zero,

source§

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

§

type ComputedValue = GenericInsetRect<<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 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<OpacityType> ToComputedValue for GenericSVGOpacity<OpacityType>where OpacityType: ToComputedValue,

source§

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

source§

impl<Position, LengthPercentage, NonNegativeLengthPercentage, BasicShapeRect> ToComputedValue for GenericBasicShape<Position, LengthPercentage, NonNegativeLengthPercentage, BasicShapeRect>where Position: ToComputedValue, LengthPercentage: ToComputedValue, NonNegativeLengthPercentage: ToComputedValue, BasicShapeRect: ToComputedValue,

§

type ComputedValue = GenericBasicShape<<Position as ToComputedValue>::ComputedValue, <LengthPercentage as ToComputedValue>::ComputedValue, <NonNegativeLengthPercentage as ToComputedValue>::ComputedValue, <BasicShapeRect as ToComputedValue>::ComputedValue>

source§

impl<Position, NonNegativeLengthPercentage> ToComputedValue for Circle<Position, NonNegativeLengthPercentage>where Position: ToComputedValue, NonNegativeLengthPercentage: ToComputedValue,

§

type ComputedValue = Circle<<Position as ToComputedValue>::ComputedValue, <NonNegativeLengthPercentage as ToComputedValue>::ComputedValue>

source§

impl<Position, NonNegativeLengthPercentage> ToComputedValue for Ellipse<Position, NonNegativeLengthPercentage>where Position: ToComputedValue, NonNegativeLengthPercentage: ToComputedValue,

§

type ComputedValue = Ellipse<<Position as ToComputedValue>::ComputedValue, <NonNegativeLengthPercentage as ToComputedValue>::ComputedValue>

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<Shapes, RayFunction, U> ToComputedValue for GenericOffsetPathFunction<Shapes, RayFunction, U>where Shapes: ToComputedValue, RayFunction: ToComputedValue, U: ToComputedValue,

source§

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

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, <T as ToComputedValue>::ComputedValue: TaggedFontValue,

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,