Trait style::values::resolved::ToResolvedValue
source · pub trait ToResolvedValue {
type ResolvedValue;
// Required methods
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue;
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self;
}
Expand description
A trait to represent the conversion between resolved and resolved values.
This trait is derivable with #[derive(ToResolvedValue)]
.
The deriving code assumes that if the type isn’t generic, then the trait can
be implemented as simple move. This means that a manual implementation with
ResolvedValue = Self
is bogus if it returns anything else than a clone.
Required Associated Types§
sourcetype ResolvedValue
type ResolvedValue
The resolved value type we’re going to be converted to.
Required Methods§
sourcefn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
sourcefn from_resolved_value(resolved: Self::ResolvedValue) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
Object Safety§
Implementations on Foreign Types§
source§impl ToResolvedValue for AllowedNumericType
impl ToResolvedValue for AllowedNumericType
type ResolvedValue = AllowedNumericType
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for bool
impl ToResolvedValue for bool
type ResolvedValue = bool
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for f32
impl ToResolvedValue for f32
type ResolvedValue = f32
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for i8
impl ToResolvedValue for i8
type ResolvedValue = i8
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for i16
impl ToResolvedValue for i16
type ResolvedValue = i16
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for i32
impl ToResolvedValue for i32
type ResolvedValue = i32
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for u8
impl ToResolvedValue for u8
type ResolvedValue = u8
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for u16
impl ToResolvedValue for u16
type ResolvedValue = u16
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for u32
impl ToResolvedValue for u32
type ResolvedValue = u32
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for ()
impl ToResolvedValue for ()
type ResolvedValue = ()
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for usize
impl ToResolvedValue for usize
type ResolvedValue = usize
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for Box<str>
impl ToResolvedValue for Box<str>
type ResolvedValue = Box<str>
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl ToResolvedValue for String
impl ToResolvedValue for String
type ResolvedValue = String
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl<A, B> ToResolvedValue for (A, B)where
A: ToResolvedValue,
B: ToResolvedValue,
impl<A, B> ToResolvedValue for (A, B)where
A: ToResolvedValue,
B: ToResolvedValue,
type ResolvedValue = (<A as ToResolvedValue>::ResolvedValue, <B as ToResolvedValue>::ResolvedValue)
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl<T> ToResolvedValue for Option<T>where
T: ToResolvedValue,
impl<T> ToResolvedValue for Option<T>where
T: ToResolvedValue,
type ResolvedValue = Option<<T as ToResolvedValue>::ResolvedValue>
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl<T> ToResolvedValue for Arc<T>where
T: ToResolvedValue<ResolvedValue = T>,
impl<T> ToResolvedValue for Arc<T>where
T: ToResolvedValue<ResolvedValue = T>,
type ResolvedValue = Arc<T>
fn to_resolved_value(self, _: &Context<'_>) -> Self
fn from_resolved_value(resolved: Self) -> Self
source§impl<T> ToResolvedValue for SmallVec<[T; 1]>where
T: ToResolvedValue,
impl<T> ToResolvedValue for SmallVec<[T; 1]>where
T: ToResolvedValue,
type ResolvedValue = SmallVec<[<T as ToResolvedValue>::ResolvedValue; 1]>
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl<T> ToResolvedValue for ThinVec<T>where
T: ToResolvedValue,
impl<T> ToResolvedValue for ThinVec<T>where
T: ToResolvedValue,
type ResolvedValue = ThinVec<<T as ToResolvedValue>::ResolvedValue>
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl<T> ToResolvedValue for Box<[T]>where
T: ToResolvedValue,
impl<T> ToResolvedValue for Box<[T]>where
T: ToResolvedValue,
type ResolvedValue = Box<[<T as ToResolvedValue>::ResolvedValue]>
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl<T> ToResolvedValue for Box<T>where
T: ToResolvedValue,
impl<T> ToResolvedValue for Box<T>where
T: ToResolvedValue,
type ResolvedValue = Box<<T as ToResolvedValue>::ResolvedValue>
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
source§impl<T> ToResolvedValue for Vec<T>where
T: ToResolvedValue,
impl<T> ToResolvedValue for Vec<T>where
T: ToResolvedValue,
type ResolvedValue = Vec<<T as ToResolvedValue>::ResolvedValue>
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
Implementors§
source§impl ToResolvedValue for ColorSpace
impl ToResolvedValue for ColorSpace
type ResolvedValue = ColorSpace
source§impl ToResolvedValue for CounterStylewhere
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
SymbolsType: ToResolvedValue<ResolvedValue = SymbolsType>,
Symbols: ToResolvedValue<ResolvedValue = Symbols>,
AtomString: ToResolvedValue<ResolvedValue = AtomString>,
impl ToResolvedValue for CounterStylewhere
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
SymbolsType: ToResolvedValue<ResolvedValue = SymbolsType>,
Symbols: ToResolvedValue<ResolvedValue = Symbols>,
AtomString: ToResolvedValue<ResolvedValue = AtomString>,
type ResolvedValue = CounterStyle
source§impl ToResolvedValue for Symbolwhere
OwnedStr: ToResolvedValue<ResolvedValue = OwnedStr>,
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
impl ToResolvedValue for Symbolwhere
OwnedStr: ToResolvedValue<ResolvedValue = OwnedStr>,
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
type ResolvedValue = Symbol
source§impl ToResolvedValue for SymbolsType
impl ToResolvedValue for SymbolsType
type ResolvedValue = SymbolsType
source§impl ToResolvedValue for LonghandId
impl ToResolvedValue for LonghandId
type ResolvedValue = LonghandId
source§impl ToResolvedValue for ShorthandId
impl ToResolvedValue for ShorthandId
type ResolvedValue = ShorthandId
source§impl ToResolvedValue for style::properties::generated::longhands::_servo_overflow_clip_box::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::_servo_overflow_clip_box::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::_servo_top_layer::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::_servo_top_layer::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::backface_visibility::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::backface_visibility::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::background_attachment::single_value::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::background_attachment::single_value::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::background_clip::single_value::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::background_clip::single_value::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::background_origin::single_value::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::background_origin::single_value::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::border_collapse::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::border_collapse::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::box_sizing::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::box_sizing::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::column_span::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::column_span::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::direction::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::direction::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::empty_cells::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::empty_cells::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::flex_direction::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::flex_direction::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::flex_wrap::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::flex_wrap::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::font_variant_caps::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::font_variant_caps::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::list_style_position::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::list_style_position::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::list_style_type::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::list_style_type::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::mix_blend_mode::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::mix_blend_mode::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::object_fit::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::object_fit::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::position::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::position::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::table_layout::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::table_layout::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::text_decoration_style::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::text_decoration_style::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::text_rendering::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::text_rendering::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::text_wrap_mode::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::text_wrap_mode::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::unicode_bidi::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::unicode_bidi::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::visibility::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::visibility::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::white_space_collapse::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::white_space_collapse::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for style::properties::generated::longhands::writing_mode::computed_value::T
impl ToResolvedValue for style::properties::generated::longhands::writing_mode::computed_value::T
type ResolvedValue = T
source§impl ToResolvedValue for Multiplier
impl ToResolvedValue for Multiplier
type ResolvedValue = Multiplier
source§impl ToResolvedValue for ComputedUrl
impl ToResolvedValue for ComputedUrl
type ResolvedValue = ComputedUrl
source§impl ToResolvedValue for Resize
impl ToResolvedValue for Resize
type ResolvedValue = Resize
source§impl ToResolvedValue for AngleOrPercentagewhere
Percentage: ToResolvedValue<ResolvedValue = Percentage>,
Angle: ToResolvedValue<ResolvedValue = Angle>,
impl ToResolvedValue for AngleOrPercentagewhere
Percentage: ToResolvedValue<ResolvedValue = Percentage>,
Angle: ToResolvedValue<ResolvedValue = Angle>,
source§impl ToResolvedValue for NumberOrPercentagewhere
Percentage: ToResolvedValue<ResolvedValue = Percentage>,
Number: ToResolvedValue<ResolvedValue = Number>,
impl ToResolvedValue for NumberOrPercentagewhere
Percentage: ToResolvedValue<ResolvedValue = Percentage>,
Number: ToResolvedValue<ResolvedValue = Number>,
source§impl ToResolvedValue for SingleFontFamilywhere
FamilyName: ToResolvedValue<ResolvedValue = FamilyName>,
GenericFontFamily: ToResolvedValue<ResolvedValue = GenericFontFamily>,
impl ToResolvedValue for SingleFontFamilywhere
FamilyName: ToResolvedValue<ResolvedValue = FamilyName>,
GenericFontFamily: ToResolvedValue<ResolvedValue = GenericFontFamily>,
source§impl ToResolvedValue for LineDirectionwhere
Angle: ToResolvedValue<ResolvedValue = Angle>,
HorizontalPositionKeyword: ToResolvedValue<ResolvedValue = HorizontalPositionKeyword>,
VerticalPositionKeyword: ToResolvedValue<ResolvedValue = VerticalPositionKeyword>,
impl ToResolvedValue for LineDirectionwhere
Angle: ToResolvedValue<ResolvedValue = Angle>,
HorizontalPositionKeyword: ToResolvedValue<ResolvedValue = HorizontalPositionKeyword>,
VerticalPositionKeyword: ToResolvedValue<ResolvedValue = VerticalPositionKeyword>,
source§impl ToResolvedValue for CalcLengthPercentageLeafwhere
Length: ToResolvedValue<ResolvedValue = Length>,
Percentage: ToResolvedValue<ResolvedValue = Percentage>,
f32: ToResolvedValue<ResolvedValue = f32>,
impl ToResolvedValue for CalcLengthPercentageLeafwhere
Length: ToResolvedValue<ResolvedValue = Length>,
Percentage: ToResolvedValue<ResolvedValue = Percentage>,
f32: ToResolvedValue<ResolvedValue = f32>,
source§impl ToResolvedValue for PageSizewhere
Size2D<NonNegativeLength>: ToResolvedValue<ResolvedValue = Size2D<NonNegativeLength>>,
PageSizeOrientation: ToResolvedValue<ResolvedValue = PageSizeOrientation>,
impl ToResolvedValue for PageSizewhere
Size2D<NonNegativeLength>: ToResolvedValue<ResolvedValue = Size2D<NonNegativeLength>>,
PageSizeOrientation: ToResolvedValue<ResolvedValue = PageSizeOrientation>,
type ResolvedValue = PageSize
source§impl ToResolvedValue for TextEmphasisStylewhere
TextEmphasisFillMode: ToResolvedValue<ResolvedValue = TextEmphasisFillMode>,
TextEmphasisShapeKeyword: ToResolvedValue<ResolvedValue = TextEmphasisShapeKeyword>,
OwnedStr: ToResolvedValue<ResolvedValue = OwnedStr>,
impl ToResolvedValue for TextEmphasisStylewhere
TextEmphasisFillMode: ToResolvedValue<ResolvedValue = TextEmphasisFillMode>,
TextEmphasisShapeKeyword: ToResolvedValue<ResolvedValue = TextEmphasisShapeKeyword>,
OwnedStr: ToResolvedValue<ResolvedValue = OwnedStr>,
source§impl ToResolvedValue for Impossible
impl ToResolvedValue for Impossible
type ResolvedValue = Impossible
source§impl ToResolvedValue for ArcSize
impl ToResolvedValue for ArcSize
type ResolvedValue = ArcSize
source§impl ToResolvedValue for ArcSweep
impl ToResolvedValue for ArcSweep
type ResolvedValue = ArcSweep
source§impl ToResolvedValue for ByTo
impl ToResolvedValue for ByTo
type ResolvedValue = ByTo
source§impl ToResolvedValue for FillRule
impl ToResolvedValue for FillRule
type ResolvedValue = FillRule
source§impl ToResolvedValue for ShapeBox
impl ToResolvedValue for ShapeBox
type ResolvedValue = ShapeBox
source§impl ToResolvedValue for ShapeGeometryBox
impl ToResolvedValue for ShapeGeometryBox
source§impl ToResolvedValue for MinMaxOp
impl ToResolvedValue for MinMaxOp
type ResolvedValue = MinMaxOp
source§impl ToResolvedValue for ModRemOp
impl ToResolvedValue for ModRemOp
type ResolvedValue = ModRemOp
source§impl ToResolvedValue for StepPosition
impl ToResolvedValue for StepPosition
type ResolvedValue = StepPosition
source§impl ToResolvedValue for TimingKeyword
impl ToResolvedValue for TimingKeyword
source§impl ToResolvedValue for ShapeExtent
impl ToResolvedValue for ShapeExtent
type ResolvedValue = ShapeExtent
source§impl ToResolvedValue for RaySize
impl ToResolvedValue for RaySize
type ResolvedValue = RaySize
source§impl ToResolvedValue for PageOrientation
impl ToResolvedValue for PageOrientation
source§impl ToResolvedValue for TransformStyle
impl ToResolvedValue for TransformStyle
source§impl ToResolvedValue for ScrollAxis
impl ToResolvedValue for ScrollAxis
type ResolvedValue = ScrollAxis
source§impl ToResolvedValue for Scroller
impl ToResolvedValue for Scroller
type ResolvedValue = Scroller
source§impl ToResolvedValue for TransitionPropertywhere
NonCustomPropertyId: ToResolvedValue<ResolvedValue = NonCustomPropertyId>,
Atom: ToResolvedValue<ResolvedValue = Atom>,
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
impl ToResolvedValue for TransitionPropertywhere
NonCustomPropertyId: ToResolvedValue<ResolvedValue = NonCustomPropertyId>,
Atom: ToResolvedValue<ResolvedValue = Atom>,
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
source§impl ToResolvedValue for BorderStyle
impl ToResolvedValue for BorderStyle
type ResolvedValue = BorderStyle
source§impl ToResolvedValue for Appearance
impl ToResolvedValue for Appearance
type ResolvedValue = Appearance
source§impl ToResolvedValue for BaselineSource
impl ToResolvedValue for BaselineSource
source§impl ToResolvedValue for BreakBetween
impl ToResolvedValue for BreakBetween
type ResolvedValue = BreakBetween
source§impl ToResolvedValue for BreakWithin
impl ToResolvedValue for BreakWithin
type ResolvedValue = BreakWithin
source§impl ToResolvedValue for Clear
impl ToResolvedValue for Clear
type ResolvedValue = Clear
source§impl ToResolvedValue for ContainerType
impl ToResolvedValue for ContainerType
source§impl ToResolvedValue for Float
impl ToResolvedValue for Float
type ResolvedValue = Float
source§impl ToResolvedValue for Overflow
impl ToResolvedValue for Overflow
type ResolvedValue = Overflow
source§impl ToResolvedValue for OverflowAnchor
impl ToResolvedValue for OverflowAnchor
source§impl ToResolvedValue for OverflowClipBox
impl ToResolvedValue for OverflowClipBox
source§impl ToResolvedValue for ScrollSnapAxis
impl ToResolvedValue for ScrollSnapAxis
source§impl ToResolvedValue for ScrollSnapStop
impl ToResolvedValue for ScrollSnapStop
source§impl ToResolvedValue for FontSizeKeyword
impl ToResolvedValue for FontSizeKeyword
source§impl ToResolvedValue for FontSynthesis
impl ToResolvedValue for FontSynthesis
source§impl ToResolvedValue for VariantAlternateswhere
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
OwnedSlice<CustomIdent>: ToResolvedValue<ResolvedValue = OwnedSlice<CustomIdent>>,
impl ToResolvedValue for VariantAlternateswhere
CustomIdent: ToResolvedValue<ResolvedValue = CustomIdent>,
OwnedSlice<CustomIdent>: ToResolvedValue<ResolvedValue = OwnedSlice<CustomIdent>>,
source§impl ToResolvedValue for XTextScale
impl ToResolvedValue for XTextScale
type ResolvedValue = XTextScale
source§impl ToResolvedValue for ImageRendering
impl ToResolvedValue for ImageRendering
source§impl ToResolvedValue for Quotes
impl ToResolvedValue for Quotes
type ResolvedValue = Quotes
source§impl ToResolvedValue for CoordBox
impl ToResolvedValue for CoordBox
type ResolvedValue = CoordBox
source§impl ToResolvedValue for OutlineStyle
impl ToResolvedValue for OutlineStyle
type ResolvedValue = OutlineStyle
source§impl ToResolvedValue for PageName
impl ToResolvedValue for PageName
type ResolvedValue = PageName
source§impl ToResolvedValue for AnchorScope
impl ToResolvedValue for AnchorScope
type ResolvedValue = AnchorScope
source§impl ToResolvedValue for GridTemplateAreas
impl ToResolvedValue for GridTemplateAreas
source§impl ToResolvedValue for PositionAnchor
impl ToResolvedValue for PositionAnchor
source§impl ToResolvedValue for PositionTryFallbacksItemwhere
DashedIdentAndOrTryTactic: ToResolvedValue<ResolvedValue = DashedIdentAndOrTryTactic>,
PositionArea: ToResolvedValue<ResolvedValue = PositionArea>,
impl ToResolvedValue for PositionTryFallbacksItemwhere
DashedIdentAndOrTryTactic: ToResolvedValue<ResolvedValue = DashedIdentAndOrTryTactic>,
PositionArea: ToResolvedValue<ResolvedValue = PositionArea>,
source§impl ToResolvedValue for DProperty
impl ToResolvedValue for DProperty
type ResolvedValue = DProperty
source§impl ToResolvedValue for CaptionSide
impl ToResolvedValue for CaptionSide
type ResolvedValue = CaptionSide
source§impl ToResolvedValue for HyphenateCharacter
impl ToResolvedValue for HyphenateCharacter
source§impl ToResolvedValue for LineBreak
impl ToResolvedValue for LineBreak
type ResolvedValue = LineBreak
source§impl ToResolvedValue for OverflowWrap
impl ToResolvedValue for OverflowWrap
type ResolvedValue = OverflowWrap
source§impl ToResolvedValue for RubyPosition
impl ToResolvedValue for RubyPosition
type ResolvedValue = RubyPosition
source§impl ToResolvedValue for TextAlignLast
impl ToResolvedValue for TextAlignLast
source§impl ToResolvedValue for TextJustify
impl ToResolvedValue for TextJustify
type ResolvedValue = TextJustify
source§impl ToResolvedValue for TextOverflowSide
impl ToResolvedValue for TextOverflowSide
source§impl ToResolvedValue for WordBreak
impl ToResolvedValue for WordBreak
type ResolvedValue = WordBreak
source§impl ToResolvedValue for TransformBox
impl ToResolvedValue for TransformBox
type ResolvedValue = TransformBox
source§impl ToResolvedValue for CursorKind
impl ToResolvedValue for CursorKind
type ResolvedValue = CursorKind
source§impl ToResolvedValue for Inert
impl ToResolvedValue for Inert
type ResolvedValue = Inert
source§impl ToResolvedValue for MozTheme
impl ToResolvedValue for MozTheme
type ResolvedValue = MozTheme
source§impl ToResolvedValue for PointerEvents
impl ToResolvedValue for PointerEvents
source§impl ToResolvedValue for UserFocus
impl ToResolvedValue for UserFocus
type ResolvedValue = UserFocus
source§impl ToResolvedValue for UserInput
impl ToResolvedValue for UserInput
type ResolvedValue = UserInput
source§impl ToResolvedValue for UserSelect
impl ToResolvedValue for UserSelect
type ResolvedValue = UserSelect
source§impl ToResolvedValue for ColorInterpolationMethodwhere
ColorSpace: ToResolvedValue<ResolvedValue = ColorSpace>,
HueInterpolationMethod: ToResolvedValue<ResolvedValue = HueInterpolationMethod>,
impl ToResolvedValue for ColorInterpolationMethodwhere
ColorSpace: ToResolvedValue<ResolvedValue = ColorSpace>,
HueInterpolationMethod: ToResolvedValue<ResolvedValue = HueInterpolationMethod>,
source§impl ToResolvedValue for AbsoluteColor
impl ToResolvedValue for AbsoluteColor
source§impl ToResolvedValue for Symbols
impl ToResolvedValue for Symbols
type ResolvedValue = Symbols
source§impl ToResolvedValue for VariableValue
impl ToResolvedValue for VariableValue
source§impl ToResolvedValue for PiecewiseLinearFunctionwhere
ArcSlice<PiecewiseLinearFunctionEntry>: ToResolvedValue<ResolvedValue = ArcSlice<PiecewiseLinearFunctionEntry>>,
impl ToResolvedValue for PiecewiseLinearFunctionwhere
ArcSlice<PiecewiseLinearFunctionEntry>: ToResolvedValue<ResolvedValue = ArcSlice<PiecewiseLinearFunctionEntry>>,
source§impl ToResolvedValue for ComputedList
impl ToResolvedValue for ComputedList
source§impl ToResolvedValue for OwnedStr
impl ToResolvedValue for OwnedStr
type ResolvedValue = OwnedStr
source§impl ToResolvedValue for UrlExtraData
impl ToResolvedValue for UrlExtraData
type ResolvedValue = UrlExtraData
source§impl ToResolvedValue for Angle
impl ToResolvedValue for Angle
type ResolvedValue = Angle
source§impl ToResolvedValue for Zoom
impl ToResolvedValue for Zoom
type ResolvedValue = Zoom
source§impl ToResolvedValue for FamilyNamewhere
Atom: ToResolvedValue<ResolvedValue = Atom>,
FontFamilyNameSyntax: ToResolvedValue<ResolvedValue = FontFamilyNameSyntax>,
impl ToResolvedValue for FamilyNamewhere
Atom: ToResolvedValue<ResolvedValue = Atom>,
FontFamilyNameSyntax: ToResolvedValue<ResolvedValue = FontFamilyNameSyntax>,
type ResolvedValue = FamilyName
source§impl ToResolvedValue for FontFamilywhere
FontFamilyList: ToResolvedValue<ResolvedValue = FontFamilyList>,
bool: ToResolvedValue<ResolvedValue = bool>,
impl ToResolvedValue for FontFamilywhere
FontFamilyList: ToResolvedValue<ResolvedValue = FontFamilyList>,
bool: ToResolvedValue<ResolvedValue = bool>,
type ResolvedValue = FontFamily
source§impl ToResolvedValue for FontFamilyList
impl ToResolvedValue for FontFamilyList
source§impl ToResolvedValue for FontSize
impl ToResolvedValue for FontSize
source§impl ToResolvedValue for FontStretch
impl ToResolvedValue for FontStretch
type ResolvedValue = FontStretch
source§impl ToResolvedValue for style::values::computed::font::FontStyle
impl ToResolvedValue for style::values::computed::font::FontStyle
type ResolvedValue = FontStyle
source§impl ToResolvedValue for FontWeight
impl ToResolvedValue for FontWeight
type ResolvedValue = FontWeight
source§impl ToResolvedValue for CSSPixelLength
impl ToResolvedValue for CSSPixelLength
source§impl ToResolvedValue for CalcLengthPercentagewhere
AllowedNumericType: ToResolvedValue<ResolvedValue = AllowedNumericType>,
CalcNode: ToResolvedValue<ResolvedValue = CalcNode>,
impl ToResolvedValue for CalcLengthPercentagewhere
AllowedNumericType: ToResolvedValue<ResolvedValue = AllowedNumericType>,
CalcNode: ToResolvedValue<ResolvedValue = CalcNode>,
source§impl ToResolvedValue for OffsetRotate
impl ToResolvedValue for OffsetRotate
type ResolvedValue = OffsetRotate
source§impl ToResolvedValue for Percentage
impl ToResolvedValue for Percentage
type ResolvedValue = Percentage
source§impl ToResolvedValue for Resolution
impl ToResolvedValue for Resolution
type ResolvedValue = Resolution
source§impl ToResolvedValue for Au
impl ToResolvedValue for Au
source§impl ToResolvedValue for Time
impl ToResolvedValue for Time
type ResolvedValue = Time
source§impl ToResolvedValue for Pathwhere
FillRule: ToResolvedValue<ResolvedValue = FillRule>,
SVGPathData: ToResolvedValue<ResolvedValue = SVGPathData>,
impl ToResolvedValue for Pathwhere
FillRule: ToResolvedValue<ResolvedValue = FillRule>,
SVGPathData: ToResolvedValue<ResolvedValue = SVGPathData>,
type ResolvedValue = Path
source§impl ToResolvedValue for ColorMixFlags
impl ToResolvedValue for ColorMixFlags
source§impl ToResolvedValue for FontTag
impl ToResolvedValue for FontTag
type ResolvedValue = FontTag
source§impl ToResolvedValue for GradientFlags
impl ToResolvedValue for GradientFlags
source§impl ToResolvedValue for PaintWorklet
impl ToResolvedValue for PaintWorklet
type ResolvedValue = PaintWorklet
source§impl ToResolvedValue for AlignContent
impl ToResolvedValue for AlignContent
type ResolvedValue = AlignContent
source§impl ToResolvedValue for AlignFlags
impl ToResolvedValue for AlignFlags
type ResolvedValue = AlignFlags
source§impl ToResolvedValue for AlignItems
impl ToResolvedValue for AlignItems
type ResolvedValue = AlignItems
source§impl ToResolvedValue for AlignSelf
impl ToResolvedValue for AlignSelf
type ResolvedValue = AlignSelf
source§impl ToResolvedValue for JustifyContent
impl ToResolvedValue for JustifyContent
source§impl ToResolvedValue for JustifyItems
impl ToResolvedValue for JustifyItems
type ResolvedValue = JustifyItems
source§impl ToResolvedValue for JustifySelf
impl ToResolvedValue for JustifySelf
type ResolvedValue = JustifySelf
source§impl ToResolvedValue for SelfAlignment
impl ToResolvedValue for SelfAlignment
source§impl ToResolvedValue for AnimationName
impl ToResolvedValue for AnimationName
source§impl ToResolvedValue for ScrollFunctionwhere
Scroller: ToResolvedValue<ResolvedValue = Scroller>,
ScrollAxis: ToResolvedValue<ResolvedValue = ScrollAxis>,
impl ToResolvedValue for ScrollFunctionwhere
Scroller: ToResolvedValue<ResolvedValue = Scroller>,
ScrollAxis: ToResolvedValue<ResolvedValue = ScrollAxis>,
source§impl ToResolvedValue for TimelineName
impl ToResolvedValue for TimelineName
type ResolvedValue = TimelineName
source§impl ToResolvedValue for ViewTransitionName
impl ToResolvedValue for ViewTransitionName
source§impl ToResolvedValue for BackgroundRepeat
impl ToResolvedValue for BackgroundRepeat
source§impl ToResolvedValue for BorderImageRepeat
impl ToResolvedValue for BorderImageRepeat
source§impl ToResolvedValue for Contain
impl ToResolvedValue for Contain
type ResolvedValue = Contain
source§impl ToResolvedValue for ContainerName
impl ToResolvedValue for ContainerName
source§impl ToResolvedValue for Display
impl ToResolvedValue for Display
type ResolvedValue = Display
source§impl ToResolvedValue for ScrollSnapAlign
impl ToResolvedValue for ScrollSnapAlign
source§impl ToResolvedValue for ScrollSnapTypewhere
ScrollSnapAxis: ToResolvedValue<ResolvedValue = ScrollSnapAxis>,
ScrollSnapStrictness: ToResolvedValue<ResolvedValue = ScrollSnapStrictness>,
impl ToResolvedValue for ScrollSnapTypewhere
ScrollSnapAxis: ToResolvedValue<ResolvedValue = ScrollSnapAxis>,
ScrollSnapStrictness: ToResolvedValue<ResolvedValue = ScrollSnapStrictness>,
source§impl ToResolvedValue for ScrollbarGutter
impl ToResolvedValue for ScrollbarGutter
source§impl ToResolvedValue for TouchAction
impl ToResolvedValue for TouchAction
type ResolvedValue = TouchAction
source§impl ToResolvedValue for WillChangewhere
OwnedSlice<CustomIdent>: ToResolvedValue<ResolvedValue = OwnedSlice<CustomIdent>>,
WillChangeBits: ToResolvedValue<ResolvedValue = WillChangeBits>,
impl ToResolvedValue for WillChangewhere
OwnedSlice<CustomIdent>: ToResolvedValue<ResolvedValue = OwnedSlice<CustomIdent>>,
WillChangeBits: ToResolvedValue<ResolvedValue = WillChangeBits>,
type ResolvedValue = WillChange
source§impl ToResolvedValue for WillChangeBits
impl ToResolvedValue for WillChangeBits
source§impl ToResolvedValue for ColorSchemewhere
ArcSlice<CustomIdent>: ToResolvedValue<ResolvedValue = ArcSlice<CustomIdent>>,
ColorSchemeFlags: ToResolvedValue<ResolvedValue = ColorSchemeFlags>,
impl ToResolvedValue for ColorSchemewhere
ArcSlice<CustomIdent>: ToResolvedValue<ResolvedValue = ArcSlice<CustomIdent>>,
ColorSchemeFlags: ToResolvedValue<ResolvedValue = ColorSchemeFlags>,
type ResolvedValue = ColorScheme
source§impl ToResolvedValue for ColorSchemeFlags
impl ToResolvedValue for ColorSchemeFlags
source§impl ToResolvedValue for FontPalette
impl ToResolvedValue for FontPalette
type ResolvedValue = FontPalette
source§impl ToResolvedValue for FontVariantAlternateswhere
OwnedSlice<VariantAlternates>: ToResolvedValue<ResolvedValue = OwnedSlice<VariantAlternates>>,
impl ToResolvedValue for FontVariantAlternateswhere
OwnedSlice<VariantAlternates>: ToResolvedValue<ResolvedValue = OwnedSlice<VariantAlternates>>,
source§impl ToResolvedValue for FontVariantNumeric
impl ToResolvedValue for FontVariantNumeric
source§impl ToResolvedValue for KeywordInfowhere
FontSizeKeyword: ToResolvedValue<ResolvedValue = FontSizeKeyword>,
f32: ToResolvedValue<ResolvedValue = f32>,
CSSPixelLength: ToResolvedValue<ResolvedValue = CSSPixelLength>,
impl ToResolvedValue for KeywordInfowhere
FontSizeKeyword: ToResolvedValue<ResolvedValue = FontSizeKeyword>,
f32: ToResolvedValue<ResolvedValue = f32>,
CSSPixelLength: ToResolvedValue<ResolvedValue = CSSPixelLength>,
type ResolvedValue = KeywordInfo
source§impl ToResolvedValue for XLang
impl ToResolvedValue for XLang
type ResolvedValue = XLang
source§impl ToResolvedValue for QuoteList
impl ToResolvedValue for QuoteList
type ResolvedValue = QuoteList
source§impl ToResolvedValue for QuotePair
impl ToResolvedValue for QuotePair
type ResolvedValue = QuotePair
source§impl ToResolvedValue for AnchorName
impl ToResolvedValue for AnchorName
type ResolvedValue = AnchorName
source§impl ToResolvedValue for DashedIdentAndOrTryTacticwhere
DashedIdent: ToResolvedValue<ResolvedValue = DashedIdent>,
PositionTryFallbacksTryTactic: ToResolvedValue<ResolvedValue = PositionTryFallbacksTryTactic>,
impl ToResolvedValue for DashedIdentAndOrTryTacticwhere
DashedIdent: ToResolvedValue<ResolvedValue = DashedIdent>,
PositionTryFallbacksTryTactic: ToResolvedValue<ResolvedValue = PositionTryFallbacksTryTactic>,
source§impl ToResolvedValue for GridAutoFlow
impl ToResolvedValue for GridAutoFlow
type ResolvedValue = GridAutoFlow
source§impl ToResolvedValue for MasonryAutoFlowwhere
MasonryPlacement: ToResolvedValue<ResolvedValue = MasonryPlacement>,
MasonryItemOrder: ToResolvedValue<ResolvedValue = MasonryItemOrder>,
impl ToResolvedValue for MasonryAutoFlowwhere
MasonryPlacement: ToResolvedValue<ResolvedValue = MasonryPlacement>,
MasonryItemOrder: ToResolvedValue<ResolvedValue = MasonryItemOrder>,
source§impl ToResolvedValue for NamedAreawhere
Atom: ToResolvedValue<ResolvedValue = Atom>,
UnsignedRange: ToResolvedValue<ResolvedValue = UnsignedRange>,
impl ToResolvedValue for NamedAreawhere
Atom: ToResolvedValue<ResolvedValue = Atom>,
UnsignedRange: ToResolvedValue<ResolvedValue = UnsignedRange>,
type ResolvedValue = NamedArea
source§impl ToResolvedValue for PositionArea
impl ToResolvedValue for PositionArea
type ResolvedValue = PositionArea
source§impl ToResolvedValue for PositionTryFallbackswhere
ArcSlice<PositionTryFallbacksItem>: ToResolvedValue<ResolvedValue = ArcSlice<PositionTryFallbacksItem>>,
impl ToResolvedValue for PositionTryFallbackswhere
ArcSlice<PositionTryFallbacksItem>: ToResolvedValue<ResolvedValue = ArcSlice<PositionTryFallbacksItem>>,
source§impl ToResolvedValue for PositionTryFallbacksTryTacticwhere
PositionTryFallbacksTryTacticKeyword: ToResolvedValue<ResolvedValue = PositionTryFallbacksTryTacticKeyword>,
impl ToResolvedValue for PositionTryFallbacksTryTacticwhere
PositionTryFallbacksTryTacticKeyword: ToResolvedValue<ResolvedValue = PositionTryFallbacksTryTacticKeyword>,
source§impl ToResolvedValue for PositionVisibility
impl ToResolvedValue for PositionVisibility
source§impl ToResolvedValue for TemplateAreaswhere
OwnedSlice<NamedArea>: ToResolvedValue<ResolvedValue = OwnedSlice<NamedArea>>,
OwnedSlice<OwnedStr>: ToResolvedValue<ResolvedValue = OwnedSlice<OwnedStr>>,
u32: ToResolvedValue<ResolvedValue = u32>,
impl ToResolvedValue for TemplateAreaswhere
OwnedSlice<NamedArea>: ToResolvedValue<ResolvedValue = OwnedSlice<NamedArea>>,
OwnedSlice<OwnedStr>: ToResolvedValue<ResolvedValue = OwnedSlice<OwnedStr>>,
u32: ToResolvedValue<ResolvedValue = u32>,
source§impl ToResolvedValue for TemplateAreasArc
impl ToResolvedValue for TemplateAreasArc
source§impl ToResolvedValue for UnsignedRange
impl ToResolvedValue for UnsignedRange
source§impl ToResolvedValue for Attrwhere
Prefix: ToResolvedValue<ResolvedValue = Prefix>,
Namespace: ToResolvedValue<ResolvedValue = Namespace>,
Atom: ToResolvedValue<ResolvedValue = Atom>,
AtomString: ToResolvedValue<ResolvedValue = AtomString>,
impl ToResolvedValue for Attrwhere
Prefix: ToResolvedValue<ResolvedValue = Prefix>,
Namespace: ToResolvedValue<ResolvedValue = Namespace>,
Atom: ToResolvedValue<ResolvedValue = Atom>,
AtomString: ToResolvedValue<ResolvedValue = AtomString>,
type ResolvedValue = Attr
source§impl ToResolvedValue for MozContextPropertieswhere
ArcSlice<CustomIdent>: ToResolvedValue<ResolvedValue = ArcSlice<CustomIdent>>,
ContextPropertyBits: ToResolvedValue<ResolvedValue = ContextPropertyBits>,
impl ToResolvedValue for MozContextPropertieswhere
ArcSlice<CustomIdent>: ToResolvedValue<ResolvedValue = ArcSlice<CustomIdent>>,
ContextPropertyBits: ToResolvedValue<ResolvedValue = ContextPropertyBits>,
source§impl ToResolvedValue for SVGPaintOrder
impl ToResolvedValue for SVGPaintOrder
source§impl ToResolvedValue for VectorEffect
impl ToResolvedValue for VectorEffect
type ResolvedValue = VectorEffect
source§impl ToResolvedValue for SVGPathData
impl ToResolvedValue for SVGPathData
type ResolvedValue = SVGPathData
source§impl ToResolvedValue for TextDecorationLine
impl ToResolvedValue for TextDecorationLine
source§impl ToResolvedValue for TextOverflowwhere
TextOverflowSide: ToResolvedValue<ResolvedValue = TextOverflowSide>,
bool: ToResolvedValue<ResolvedValue = bool>,
impl ToResolvedValue for TextOverflowwhere
TextOverflowSide: ToResolvedValue<ResolvedValue = TextOverflowSide>,
bool: ToResolvedValue<ResolvedValue = bool>,
type ResolvedValue = TextOverflow
source§impl ToResolvedValue for TextTransform
impl ToResolvedValue for TextTransform
source§impl ToResolvedValue for BoolInteger
impl ToResolvedValue for BoolInteger
type ResolvedValue = BoolInteger
source§impl ToResolvedValue for AtomString
impl ToResolvedValue for AtomString
type ResolvedValue = AtomString
source§impl ToResolvedValue for CustomIdent
impl ToResolvedValue for CustomIdent
type ResolvedValue = CustomIdent
source§impl ToResolvedValue for DashedIdent
impl ToResolvedValue for DashedIdent
type ResolvedValue = DashedIdent
source§impl ToResolvedValue for KeyframesName
impl ToResolvedValue for KeyframesName
source§impl ToResolvedValue for Atom
impl ToResolvedValue for Atom
type ResolvedValue = Atom<AtomStaticSet>
source§impl ToResolvedValue for Namespace
impl ToResolvedValue for Namespace
source§impl ToResolvedValue for Prefix
impl ToResolvedValue for Prefix
source§impl ToResolvedValue for AnimationDuration
impl ToResolvedValue for AnimationDuration
source§impl ToResolvedValue for CaretColor
impl ToResolvedValue for CaretColor
source§impl ToResolvedValue for Color
impl ToResolvedValue for Color
source§impl ToResolvedValue for Content
impl ToResolvedValue for Content
https://drafts.csswg.org/css-content/#content-property
We implement this at resolved value time because otherwise it causes us to allocate a bunch of useless initial structs for ::before / ::after, which is a bit unfortunate.
Though these should be temporary, mostly, so if this causes complexity in
other places, it should be fine to move to StyleAdjuster
.
See https://github.com/w3c/csswg-drafts/issues/4632 for where some related issues are being discussed.