Struct swc_css_compat::compiler::Compiler

source ·
pub struct Compiler { /* private fields */ }
Expand description

Compiles a modern CSS file to a CSS file which works with old browsers.

Implementations§

source§

impl Compiler

source

pub fn new(config: Config) -> Self

Trait Implementations§

source§

impl Debug for Compiler

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl VisitMut for Compiler

source§

fn visit_mut_at_rule(&mut self, n: &mut AtRule)

Visit a node of type AtRule. Read more
source§

fn visit_mut_supports_condition(&mut self, n: &mut SupportsCondition)

Visit a node of type SupportsCondition. Read more
source§

fn visit_mut_media_query(&mut self, n: &mut MediaQuery)

Visit a node of type MediaQuery. Read more
source§

fn visit_mut_media_condition(&mut self, n: &mut MediaCondition)

Visit a node of type MediaCondition. Read more
source§

fn visit_mut_media_condition_without_or( &mut self, n: &mut MediaConditionWithoutOr, )

Visit a node of type MediaConditionWithoutOr. Read more
source§

fn visit_mut_rules(&mut self, n: &mut Vec<Rule>)

Visit a node of type Vec < Rule >. Read more
source§

fn visit_mut_media_in_parens(&mut self, n: &mut MediaInParens)

Visit a node of type MediaInParens. Read more
source§

fn visit_mut_compound_selector(&mut self, n: &mut CompoundSelector)

Visit a node of type CompoundSelector. Read more
source§

fn visit_mut_component_value(&mut self, n: &mut ComponentValue)

Visit a node of type ComponentValue. Read more
source§

fn visit_mut_absolute_color_base(&mut self, n: &mut AbsoluteColorBase)

Visit a node of type AbsoluteColorBase. Read more
§

fn visit_mut_alpha_value(&mut self, node: &mut AlphaValue)

Visit a node of type AlphaValue. Read more
§

fn visit_mut_an_plus_b(&mut self, node: &mut AnPlusB)

Visit a node of type AnPlusB. Read more
§

fn visit_mut_an_plus_b_notation(&mut self, node: &mut AnPlusBNotation)

Visit a node of type AnPlusBNotation. Read more
§

fn visit_mut_angle(&mut self, node: &mut Angle)

Visit a node of type Angle. Read more
§

fn visit_mut_angle_percentage(&mut self, node: &mut AnglePercentage)

Visit a node of type AnglePercentage. Read more
§

fn visit_mut_any_namespace(&mut self, node: &mut AnyNamespace)

Visit a node of type AnyNamespace. Read more
§

fn visit_mut_at_rule_name(&mut self, node: &mut AtRuleName)

Visit a node of type AtRuleName. Read more
§

fn visit_mut_at_rule_prelude(&mut self, node: &mut AtRulePrelude)

Visit a node of type AtRulePrelude. Read more
§

fn visit_mut_atom(&mut self, node: &mut Atom)

Visit a node of type swc_atoms :: Atom. Read more
§

fn visit_mut_attribute_selector(&mut self, node: &mut AttributeSelector)

Visit a node of type AttributeSelector. Read more
§

fn visit_mut_attribute_selector_matcher( &mut self, node: &mut AttributeSelectorMatcher, )

Visit a node of type AttributeSelectorMatcher. Read more
§

fn visit_mut_attribute_selector_matcher_value( &mut self, node: &mut AttributeSelectorMatcherValue, )

Visit a node of type AttributeSelectorMatcherValue. Read more
§

fn visit_mut_attribute_selector_modifier( &mut self, node: &mut AttributeSelectorModifier, )

Visit a node of type AttributeSelectorModifier. Read more
§

fn visit_mut_attribute_selector_value( &mut self, node: &mut AttributeSelectorValue, )

Visit a node of type AttributeSelectorValue. Read more
§

fn visit_mut_bin_op(&mut self, node: &mut BinOp)

Visit a node of type BinOp. Read more
§

fn visit_mut_calc_operator(&mut self, node: &mut CalcOperator)

Visit a node of type CalcOperator. Read more
§

fn visit_mut_calc_operator_type(&mut self, node: &mut CalcOperatorType)

Visit a node of type CalcOperatorType. Read more
§

fn visit_mut_calc_product(&mut self, node: &mut CalcProduct)

Visit a node of type CalcProduct. Read more
§

fn visit_mut_calc_product_or_operator( &mut self, node: &mut CalcProductOrOperator, )

Visit a node of type CalcProductOrOperator. Read more
§

fn visit_mut_calc_product_or_operators( &mut self, node: &mut Vec<CalcProductOrOperator>, )

Visit a node of type Vec < CalcProductOrOperator >. Read more
§

fn visit_mut_calc_sum(&mut self, node: &mut CalcSum)

Visit a node of type CalcSum. Read more
§

fn visit_mut_calc_value(&mut self, node: &mut CalcValue)

Visit a node of type CalcValue. Read more
§

fn visit_mut_calc_value_or_operator(&mut self, node: &mut CalcValueOrOperator)

Visit a node of type CalcValueOrOperator. Read more
§

fn visit_mut_calc_value_or_operators( &mut self, node: &mut Vec<CalcValueOrOperator>, )

Visit a node of type Vec < CalcValueOrOperator >. Read more
§

fn visit_mut_class_selector(&mut self, node: &mut ClassSelector)

Visit a node of type ClassSelector. Read more
§

fn visit_mut_cmyk_component(&mut self, node: &mut CmykComponent)

Visit a node of type CmykComponent. Read more
§

fn visit_mut_color(&mut self, node: &mut Color)

Visit a node of type Color. Read more
§

fn visit_mut_color_profile_name(&mut self, node: &mut ColorProfileName)

Visit a node of type ColorProfileName. Read more
§

fn visit_mut_combinator(&mut self, node: &mut Combinator)

Visit a node of type Combinator. Read more
§

fn visit_mut_combinator_value(&mut self, node: &mut CombinatorValue)

Visit a node of type CombinatorValue. Read more
§

fn visit_mut_complex_selector(&mut self, node: &mut ComplexSelector)

Visit a node of type ComplexSelector. Read more
§

fn visit_mut_complex_selector_children( &mut self, node: &mut ComplexSelectorChildren, )

Visit a node of type ComplexSelectorChildren. Read more
§

fn visit_mut_complex_selector_childrens( &mut self, node: &mut Vec<ComplexSelectorChildren>, )

Visit a node of type Vec < ComplexSelectorChildren >. Read more
§

fn visit_mut_complex_selectors(&mut self, node: &mut Vec<ComplexSelector>)

Visit a node of type Vec < ComplexSelector >. Read more
§

fn visit_mut_component_values(&mut self, node: &mut Vec<ComponentValue>)

Visit a node of type Vec < ComponentValue >. Read more
§

fn visit_mut_compound_selector_list(&mut self, node: &mut CompoundSelectorList)

Visit a node of type CompoundSelectorList. Read more
§

fn visit_mut_compound_selectors(&mut self, node: &mut Vec<CompoundSelector>)

Visit a node of type Vec < CompoundSelector >. Read more
§

fn visit_mut_container_condition(&mut self, node: &mut ContainerCondition)

Visit a node of type ContainerCondition. Read more
§

fn visit_mut_container_name(&mut self, node: &mut ContainerName)

Visit a node of type ContainerName. Read more
§

fn visit_mut_container_query(&mut self, node: &mut ContainerQuery)

Visit a node of type ContainerQuery. Read more
§

fn visit_mut_container_query_and(&mut self, node: &mut ContainerQueryAnd)

Visit a node of type ContainerQueryAnd. Read more
§

fn visit_mut_container_query_not(&mut self, node: &mut ContainerQueryNot)

Visit a node of type ContainerQueryNot. Read more
§

fn visit_mut_container_query_or(&mut self, node: &mut ContainerQueryOr)

Visit a node of type ContainerQueryOr. Read more
§

fn visit_mut_container_query_type(&mut self, node: &mut ContainerQueryType)

Visit a node of type ContainerQueryType. Read more
§

fn visit_mut_container_query_types( &mut self, node: &mut Vec<ContainerQueryType>, )

Visit a node of type Vec < ContainerQueryType >. Read more
§

fn visit_mut_custom_highlight_name(&mut self, node: &mut CustomHighlightName)

Visit a node of type CustomHighlightName. Read more
§

fn visit_mut_custom_ident(&mut self, node: &mut CustomIdent)

Visit a node of type CustomIdent. Read more
§

fn visit_mut_custom_idents(&mut self, node: &mut Vec<CustomIdent>)

Visit a node of type Vec < CustomIdent >. Read more
§

fn visit_mut_custom_media_query(&mut self, node: &mut CustomMediaQuery)

Visit a node of type CustomMediaQuery. Read more
§

fn visit_mut_custom_media_query_media_type( &mut self, node: &mut CustomMediaQueryMediaType, )

Visit a node of type CustomMediaQueryMediaType. Read more
§

fn visit_mut_custom_property_name(&mut self, node: &mut CustomPropertyName)

Visit a node of type CustomPropertyName. Read more
§

fn visit_mut_dashed_ident(&mut self, node: &mut DashedIdent)

Visit a node of type DashedIdent. Read more
§

fn visit_mut_declaration(&mut self, node: &mut Declaration)

Visit a node of type Declaration. Read more
§

fn visit_mut_declaration_name(&mut self, node: &mut DeclarationName)

Visit a node of type DeclarationName. Read more
§

fn visit_mut_declaration_or_at_rule(&mut self, node: &mut DeclarationOrAtRule)

Visit a node of type DeclarationOrAtRule. Read more
§

fn visit_mut_delimiter(&mut self, node: &mut Delimiter)

Visit a node of type Delimiter. Read more
§

fn visit_mut_delimiter_value(&mut self, node: &mut DelimiterValue)

Visit a node of type DelimiterValue. Read more
§

fn visit_mut_dimension(&mut self, node: &mut Dimension)

Visit a node of type Dimension. Read more
§

fn visit_mut_dimension_token(&mut self, node: &mut DimensionToken)

Visit a node of type DimensionToken. Read more
§

fn visit_mut_document_prelude(&mut self, node: &mut DocumentPrelude)

Visit a node of type DocumentPrelude. Read more
§

fn visit_mut_document_prelude_matching_function( &mut self, node: &mut DocumentPreludeMatchingFunction, )

Visit a node of type DocumentPreludeMatchingFunction. Read more
§

fn visit_mut_document_prelude_matching_functions( &mut self, node: &mut Vec<DocumentPreludeMatchingFunction>, )

Visit a node of type Vec < DocumentPreludeMatchingFunction >. Read more
§

fn visit_mut_extension_name(&mut self, node: &mut ExtensionName)

Visit a node of type ExtensionName. Read more
§

fn visit_mut_family_name(&mut self, node: &mut FamilyName)

Visit a node of type FamilyName. Read more
§

fn visit_mut_family_names(&mut self, node: &mut Vec<FamilyName>)

Visit a node of type Vec < FamilyName >. Read more
§

fn visit_mut_flex(&mut self, node: &mut Flex)

Visit a node of type Flex. Read more
§

fn visit_mut_font_feature_values_prelude( &mut self, node: &mut FontFeatureValuesPrelude, )

Visit a node of type FontFeatureValuesPrelude. Read more
§

fn visit_mut_forgiving_complex_selector( &mut self, node: &mut ForgivingComplexSelector, )

Visit a node of type ForgivingComplexSelector. Read more
§

fn visit_mut_forgiving_complex_selectors( &mut self, node: &mut Vec<ForgivingComplexSelector>, )

Visit a node of type Vec < ForgivingComplexSelector >. Read more
§

fn visit_mut_forgiving_relative_selector( &mut self, node: &mut ForgivingRelativeSelector, )

Visit a node of type ForgivingRelativeSelector. Read more
§

fn visit_mut_forgiving_relative_selector_list( &mut self, node: &mut ForgivingRelativeSelectorList, )

Visit a node of type ForgivingRelativeSelectorList. Read more
§

fn visit_mut_forgiving_relative_selectors( &mut self, node: &mut Vec<ForgivingRelativeSelector>, )

Visit a node of type Vec < ForgivingRelativeSelector >. Read more
§

fn visit_mut_forgiving_selector_list( &mut self, node: &mut ForgivingSelectorList, )

Visit a node of type ForgivingSelectorList. Read more
§

fn visit_mut_frequency(&mut self, node: &mut Frequency)

Visit a node of type Frequency. Read more
§

fn visit_mut_frequency_percentage(&mut self, node: &mut FrequencyPercentage)

Visit a node of type FrequencyPercentage. Read more
§

fn visit_mut_function(&mut self, node: &mut Function)

Visit a node of type Function. Read more
§

fn visit_mut_function_name(&mut self, node: &mut FunctionName)

Visit a node of type FunctionName. Read more
§

fn visit_mut_general_enclosed(&mut self, node: &mut GeneralEnclosed)

Visit a node of type GeneralEnclosed. Read more
§

fn visit_mut_hex_color(&mut self, node: &mut HexColor)

Visit a node of type HexColor. Read more
§

fn visit_mut_hue(&mut self, node: &mut Hue)

Visit a node of type Hue. Read more
§

fn visit_mut_id_selector(&mut self, node: &mut IdSelector)

Visit a node of type IdSelector. Read more
§

fn visit_mut_ident(&mut self, node: &mut Ident)

Visit a node of type Ident. Read more
§

fn visit_mut_idents(&mut self, node: &mut Vec<Ident>)

Visit a node of type Vec < Ident >. Read more
§

fn visit_mut_import_conditions(&mut self, node: &mut ImportConditions)

Visit a node of type ImportConditions. Read more
§

fn visit_mut_import_href(&mut self, node: &mut ImportHref)

Visit a node of type ImportHref. Read more
§

fn visit_mut_import_layer_name(&mut self, node: &mut ImportLayerName)

Visit a node of type ImportLayerName. Read more
§

fn visit_mut_import_prelude(&mut self, node: &mut ImportPrelude)

Visit a node of type ImportPrelude. Read more
§

fn visit_mut_important_flag(&mut self, node: &mut ImportantFlag)

Visit a node of type ImportantFlag. Read more
§

fn visit_mut_integer(&mut self, node: &mut Integer)

Visit a node of type Integer. Read more
§

fn visit_mut_keyframe_block(&mut self, node: &mut KeyframeBlock)

Visit a node of type KeyframeBlock. Read more
§

fn visit_mut_keyframe_selector(&mut self, node: &mut KeyframeSelector)

Visit a node of type KeyframeSelector. Read more
§

fn visit_mut_keyframe_selectors(&mut self, node: &mut Vec<KeyframeSelector>)

Visit a node of type Vec < KeyframeSelector >. Read more
§

fn visit_mut_keyframes_name(&mut self, node: &mut KeyframesName)

Visit a node of type KeyframesName. Read more
§

fn visit_mut_keyframes_pseudo_function( &mut self, node: &mut KeyframesPseudoFunction, )

Visit a node of type KeyframesPseudoFunction. Read more
§

fn visit_mut_keyframes_pseudo_prefix( &mut self, node: &mut KeyframesPseudoPrefix, )

Visit a node of type KeyframesPseudoPrefix. Read more
§

fn visit_mut_layer_name(&mut self, node: &mut LayerName)

Visit a node of type LayerName. Read more
§

fn visit_mut_layer_name_list(&mut self, node: &mut LayerNameList)

Visit a node of type LayerNameList. Read more
§

fn visit_mut_layer_names(&mut self, node: &mut Vec<LayerName>)

Visit a node of type Vec < LayerName >. Read more
§

fn visit_mut_layer_prelude(&mut self, node: &mut LayerPrelude)

Visit a node of type LayerPrelude. Read more
§

fn visit_mut_length(&mut self, node: &mut Length)

Visit a node of type Length. Read more
§

fn visit_mut_length_percentage(&mut self, node: &mut LengthPercentage)

Visit a node of type LengthPercentage. Read more
§

fn visit_mut_list_of_component_values( &mut self, node: &mut ListOfComponentValues, )

Visit a node of type ListOfComponentValues. Read more
§

fn visit_mut_media_and(&mut self, node: &mut MediaAnd)

Visit a node of type MediaAnd. Read more
§

fn visit_mut_media_condition_all_type( &mut self, node: &mut MediaConditionAllType, )

Visit a node of type MediaConditionAllType. Read more
§

fn visit_mut_media_condition_all_types( &mut self, node: &mut Vec<MediaConditionAllType>, )

Visit a node of type Vec < MediaConditionAllType >. Read more
§

fn visit_mut_media_condition_type(&mut self, node: &mut MediaConditionType)

Visit a node of type MediaConditionType. Read more
§

fn visit_mut_media_condition_without_or_type( &mut self, node: &mut MediaConditionWithoutOrType, )

Visit a node of type MediaConditionWithoutOrType. Read more
§

fn visit_mut_media_condition_without_or_types( &mut self, node: &mut Vec<MediaConditionWithoutOrType>, )

Visit a node of type Vec < MediaConditionWithoutOrType >. Read more
§

fn visit_mut_media_feature(&mut self, node: &mut MediaFeature)

Visit a node of type MediaFeature. Read more
§

fn visit_mut_media_feature_boolean(&mut self, node: &mut MediaFeatureBoolean)

Visit a node of type MediaFeatureBoolean. Read more
§

fn visit_mut_media_feature_name(&mut self, node: &mut MediaFeatureName)

Visit a node of type MediaFeatureName. Read more
§

fn visit_mut_media_feature_plain(&mut self, node: &mut MediaFeaturePlain)

Visit a node of type MediaFeaturePlain. Read more
§

fn visit_mut_media_feature_range(&mut self, node: &mut MediaFeatureRange)

Visit a node of type MediaFeatureRange. Read more
§

fn visit_mut_media_feature_range_comparison( &mut self, node: &mut MediaFeatureRangeComparison, )

Visit a node of type MediaFeatureRangeComparison. Read more
§

fn visit_mut_media_feature_range_interval( &mut self, node: &mut MediaFeatureRangeInterval, )

Visit a node of type MediaFeatureRangeInterval. Read more
§

fn visit_mut_media_feature_value(&mut self, node: &mut MediaFeatureValue)

Visit a node of type MediaFeatureValue. Read more
§

fn visit_mut_media_not(&mut self, node: &mut MediaNot)

Visit a node of type MediaNot. Read more
§

fn visit_mut_media_or(&mut self, node: &mut MediaOr)

Visit a node of type MediaOr. Read more
§

fn visit_mut_media_query_list(&mut self, node: &mut MediaQueryList)

Visit a node of type MediaQueryList. Read more
§

fn visit_mut_media_querys(&mut self, node: &mut Vec<MediaQuery>)

Visit a node of type Vec < MediaQuery >. Read more
§

fn visit_mut_media_type(&mut self, node: &mut MediaType)

Visit a node of type MediaType. Read more
§

fn visit_mut_named_namespace(&mut self, node: &mut NamedNamespace)

Visit a node of type NamedNamespace. Read more
§

fn visit_mut_namespace(&mut self, node: &mut Namespace)

Visit a node of type Namespace. Read more
§

fn visit_mut_namespace_prefix(&mut self, node: &mut NamespacePrefix)

Visit a node of type NamespacePrefix. Read more
§

fn visit_mut_namespace_prelude(&mut self, node: &mut NamespacePrelude)

Visit a node of type NamespacePrelude. Read more
§

fn visit_mut_namespace_prelude_uri(&mut self, node: &mut NamespacePreludeUri)

Visit a node of type NamespacePreludeUri. Read more
§

fn visit_mut_nesting_selector(&mut self, node: &mut NestingSelector)

Visit a node of type NestingSelector. Read more
§

fn visit_mut_number(&mut self, node: &mut Number)

Visit a node of type Number. Read more
§

fn visit_mut_number_type(&mut self, node: &mut NumberType)

Visit a node of type NumberType. Read more
§

fn visit_mut_opt_at_rule_prelude( &mut self, node: &mut Option<Box<AtRulePrelude>>, )

Visit a node of type Option < Box < AtRulePrelude > >. Read more
§

fn visit_mut_opt_atom(&mut self, node: &mut Option<Atom>)

Visit a node of type Option < swc_atoms :: Atom >. Read more
§

fn visit_mut_opt_attribute_selector_matcher( &mut self, node: &mut Option<AttributeSelectorMatcher>, )

Visit a node of type Option < AttributeSelectorMatcher >. Read more
§

fn visit_mut_opt_attribute_selector_modifier( &mut self, node: &mut Option<AttributeSelectorModifier>, )

Visit a node of type Option < AttributeSelectorModifier >. Read more
§

fn visit_mut_opt_attribute_selector_value( &mut self, node: &mut Option<AttributeSelectorValue>, )

Visit a node of type Option < AttributeSelectorValue >. Read more
§

fn visit_mut_opt_combinator(&mut self, node: &mut Option<Combinator>)

Visit a node of type Option < Combinator >. Read more
§

fn visit_mut_opt_container_name(&mut self, node: &mut Option<ContainerName>)

Visit a node of type Option < ContainerName >. Read more
§

fn visit_mut_opt_forgiving_selector_list( &mut self, node: &mut Option<ForgivingSelectorList>, )

Visit a node of type Option < ForgivingSelectorList >. Read more
§

fn visit_mut_opt_function(&mut self, node: &mut Option<Box<Function>>)

Visit a node of type Option < Box < Function > >. Read more
§

fn visit_mut_opt_ident(&mut self, node: &mut Option<Ident>)

Visit a node of type Option < Ident >. Read more
§

fn visit_mut_opt_import_conditions( &mut self, node: &mut Option<Box<ImportConditions>>, )

Visit a node of type Option < Box < ImportConditions > >. Read more
§

fn visit_mut_opt_import_layer_name( &mut self, node: &mut Option<Box<ImportLayerName>>, )

Visit a node of type Option < Box < ImportLayerName > >. Read more
§

fn visit_mut_opt_important_flag(&mut self, node: &mut Option<ImportantFlag>)

Visit a node of type Option < ImportantFlag >. Read more
§

fn visit_mut_opt_media_condition_type( &mut self, node: &mut Option<Box<MediaConditionType>>, )

Visit a node of type Option < Box < MediaConditionType > >. Read more
§

fn visit_mut_opt_media_query_list( &mut self, node: &mut Option<Box<MediaQueryList>>, )

Visit a node of type Option < Box < MediaQueryList > >. Read more
§

fn visit_mut_opt_media_type(&mut self, node: &mut Option<MediaType>)

Visit a node of type Option < MediaType >. Read more
§

fn visit_mut_opt_namespace(&mut self, node: &mut Option<Namespace>)

Visit a node of type Option < Namespace >. Read more
§

fn visit_mut_opt_namespace_prefix(&mut self, node: &mut Option<NamespacePrefix>)

Visit a node of type Option < NamespacePrefix >. Read more
§

fn visit_mut_opt_nesting_selector(&mut self, node: &mut Option<NestingSelector>)

Visit a node of type Option < NestingSelector >. Read more
§

fn visit_mut_opt_number(&mut self, node: &mut Option<Number>)

Visit a node of type Option < Number >. Read more
§

fn visit_mut_opt_page_selector_pseudos( &mut self, node: &mut Option<Vec<PageSelectorPseudo>>, )

Visit a node of type Option < Vec < PageSelectorPseudo > >. Read more
§

fn visit_mut_opt_page_selector_type( &mut self, node: &mut Option<PageSelectorType>, )

Visit a node of type Option < PageSelectorType >. Read more
§

fn visit_mut_opt_pseudo_class_selector_childrens( &mut self, node: &mut Option<Vec<PseudoClassSelectorChildren>>, )

Visit a node of type Option < Vec < PseudoClassSelectorChildren > >. Read more
§

fn visit_mut_opt_pseudo_element_selector_childrens( &mut self, node: &mut Option<Vec<PseudoElementSelectorChildren>>, )

Visit a node of type Option < Vec < PseudoElementSelectorChildren > >. Read more
§

fn visit_mut_opt_simple_block(&mut self, node: &mut Option<SimpleBlock>)

Visit a node of type Option < SimpleBlock >. Read more
§

fn visit_mut_opt_type_selector(&mut self, node: &mut Option<Box<TypeSelector>>)

Visit a node of type Option < Box < TypeSelector > >. Read more
§

fn visit_mut_opt_url_modifiers(&mut self, node: &mut Option<Vec<UrlModifier>>)

Visit a node of type Option < Vec < UrlModifier > >. Read more
§

fn visit_mut_opt_url_value(&mut self, node: &mut Option<Box<UrlValue>>)

Visit a node of type Option < Box < UrlValue > >. Read more
§

fn visit_mut_page_selector(&mut self, node: &mut PageSelector)

Visit a node of type PageSelector. Read more
§

fn visit_mut_page_selector_list(&mut self, node: &mut PageSelectorList)

Visit a node of type PageSelectorList. Read more
§

fn visit_mut_page_selector_pseudo(&mut self, node: &mut PageSelectorPseudo)

Visit a node of type PageSelectorPseudo. Read more
§

fn visit_mut_page_selector_pseudos( &mut self, node: &mut Vec<PageSelectorPseudo>, )

Visit a node of type Vec < PageSelectorPseudo >. Read more
§

fn visit_mut_page_selector_type(&mut self, node: &mut PageSelectorType)

Visit a node of type PageSelectorType. Read more
§

fn visit_mut_page_selectors(&mut self, node: &mut Vec<PageSelector>)

Visit a node of type Vec < PageSelector >. Read more
§

fn visit_mut_percentage(&mut self, node: &mut Percentage)

Visit a node of type Percentage. Read more
§

fn visit_mut_pseudo_class_selector(&mut self, node: &mut PseudoClassSelector)

Visit a node of type PseudoClassSelector. Read more
§

fn visit_mut_pseudo_class_selector_children( &mut self, node: &mut PseudoClassSelectorChildren, )

Visit a node of type PseudoClassSelectorChildren. Read more
§

fn visit_mut_pseudo_class_selector_childrens( &mut self, node: &mut Vec<PseudoClassSelectorChildren>, )

Visit a node of type Vec < PseudoClassSelectorChildren >. Read more
§

fn visit_mut_pseudo_element_selector( &mut self, node: &mut PseudoElementSelector, )

Visit a node of type PseudoElementSelector. Read more
§

fn visit_mut_pseudo_element_selector_children( &mut self, node: &mut PseudoElementSelectorChildren, )

Visit a node of type PseudoElementSelectorChildren. Read more
§

fn visit_mut_pseudo_element_selector_childrens( &mut self, node: &mut Vec<PseudoElementSelectorChildren>, )

Visit a node of type Vec < PseudoElementSelectorChildren >. Read more
§

fn visit_mut_qualified_rule(&mut self, node: &mut QualifiedRule)

Visit a node of type QualifiedRule. Read more
§

fn visit_mut_qualified_rule_prelude(&mut self, node: &mut QualifiedRulePrelude)

Visit a node of type QualifiedRulePrelude. Read more
§

fn visit_mut_query_in_parens(&mut self, node: &mut QueryInParens)

Visit a node of type QueryInParens. Read more
§

fn visit_mut_ratio(&mut self, node: &mut Ratio)

Visit a node of type Ratio. Read more
§

fn visit_mut_relative_selector(&mut self, node: &mut RelativeSelector)

Visit a node of type RelativeSelector. Read more
§

fn visit_mut_relative_selector_list(&mut self, node: &mut RelativeSelectorList)

Visit a node of type RelativeSelectorList. Read more
§

fn visit_mut_relative_selectors(&mut self, node: &mut Vec<RelativeSelector>)

Visit a node of type Vec < RelativeSelector >. Read more
§

fn visit_mut_resolution(&mut self, node: &mut Resolution)

Visit a node of type Resolution. Read more
§

fn visit_mut_rule(&mut self, node: &mut Rule)

Visit a node of type Rule. Read more
§

fn visit_mut_scope_range(&mut self, node: &mut ScopeRange)

Visit a node of type ScopeRange. Read more
§

fn visit_mut_selector_list(&mut self, node: &mut SelectorList)

Visit a node of type SelectorList. Read more
§

fn visit_mut_sequence_of_custom_idents( &mut self, node: &mut SequenceOfCustomIdents, )

Visit a node of type SequenceOfCustomIdents. Read more
§

fn visit_mut_simple_block(&mut self, node: &mut SimpleBlock)

Visit a node of type SimpleBlock. Read more
§

fn visit_mut_size_feature(&mut self, node: &mut SizeFeature)

Visit a node of type SizeFeature. Read more
§

fn visit_mut_size_feature_boolean(&mut self, node: &mut SizeFeatureBoolean)

Visit a node of type SizeFeatureBoolean. Read more
§

fn visit_mut_size_feature_name(&mut self, node: &mut SizeFeatureName)

Visit a node of type SizeFeatureName. Read more
§

fn visit_mut_size_feature_plain(&mut self, node: &mut SizeFeaturePlain)

Visit a node of type SizeFeaturePlain. Read more
§

fn visit_mut_size_feature_range(&mut self, node: &mut SizeFeatureRange)

Visit a node of type SizeFeatureRange. Read more
§

fn visit_mut_size_feature_range_comparison( &mut self, node: &mut SizeFeatureRangeComparison, )

Visit a node of type SizeFeatureRangeComparison. Read more
§

fn visit_mut_size_feature_range_interval( &mut self, node: &mut SizeFeatureRangeInterval, )

Visit a node of type SizeFeatureRangeInterval. Read more
§

fn visit_mut_size_feature_value(&mut self, node: &mut SizeFeatureValue)

Visit a node of type SizeFeatureValue. Read more
§

fn visit_mut_span(&mut self, node: &mut Span)

Visit a node of type swc_common :: Span. Read more
§

fn visit_mut_str(&mut self, node: &mut Str)

Visit a node of type Str. Read more
§

fn visit_mut_style_block(&mut self, node: &mut StyleBlock)

Visit a node of type StyleBlock. Read more
§

fn visit_mut_stylesheet(&mut self, node: &mut Stylesheet)

Visit a node of type Stylesheet. Read more
§

fn visit_mut_subclass_selector(&mut self, node: &mut SubclassSelector)

Visit a node of type SubclassSelector. Read more
§

fn visit_mut_subclass_selectors(&mut self, node: &mut Vec<SubclassSelector>)

Visit a node of type Vec < SubclassSelector >. Read more
§

fn visit_mut_supports_and(&mut self, node: &mut SupportsAnd)

Visit a node of type SupportsAnd. Read more
§

fn visit_mut_supports_condition_type( &mut self, node: &mut SupportsConditionType, )

Visit a node of type SupportsConditionType. Read more
§

fn visit_mut_supports_condition_types( &mut self, node: &mut Vec<SupportsConditionType>, )

Visit a node of type Vec < SupportsConditionType >. Read more
§

fn visit_mut_supports_feature(&mut self, node: &mut SupportsFeature)

Visit a node of type SupportsFeature. Read more
§

fn visit_mut_supports_in_parens(&mut self, node: &mut SupportsInParens)

Visit a node of type SupportsInParens. Read more
§

fn visit_mut_supports_not(&mut self, node: &mut SupportsNot)

Visit a node of type SupportsNot. Read more
§

fn visit_mut_supports_or(&mut self, node: &mut SupportsOr)

Visit a node of type SupportsOr. Read more
§

fn visit_mut_tag_name_selector(&mut self, node: &mut TagNameSelector)

Visit a node of type TagNameSelector. Read more
§

fn visit_mut_time(&mut self, node: &mut Time)

Visit a node of type Time. Read more
§

fn visit_mut_time_percentage(&mut self, node: &mut TimePercentage)

Visit a node of type TimePercentage. Read more
§

fn visit_mut_token(&mut self, node: &mut Token)

Visit a node of type Token. Read more
§

fn visit_mut_token_and_span(&mut self, node: &mut TokenAndSpan)

Visit a node of type TokenAndSpan. Read more
§

fn visit_mut_type_selector(&mut self, node: &mut TypeSelector)

Visit a node of type TypeSelector. Read more
§

fn visit_mut_unicode_range(&mut self, node: &mut UnicodeRange)

Visit a node of type UnicodeRange. Read more
§

fn visit_mut_universal_selector(&mut self, node: &mut UniversalSelector)

Visit a node of type UniversalSelector. Read more
§

fn visit_mut_unknown_dimension(&mut self, node: &mut UnknownDimension)

Visit a node of type UnknownDimension. Read more
§

fn visit_mut_url(&mut self, node: &mut Url)

Visit a node of type Url. Read more
§

fn visit_mut_url_key_value(&mut self, node: &mut UrlKeyValue)

Visit a node of type UrlKeyValue. Read more
§

fn visit_mut_url_modifier(&mut self, node: &mut UrlModifier)

Visit a node of type UrlModifier. Read more
§

fn visit_mut_url_modifiers(&mut self, node: &mut Vec<UrlModifier>)

Visit a node of type Vec < UrlModifier >. Read more
§

fn visit_mut_url_value(&mut self, node: &mut UrlValue)

Visit a node of type UrlValue. Read more
§

fn visit_mut_url_value_raw(&mut self, node: &mut UrlValueRaw)

Visit a node of type UrlValueRaw. Read more
§

fn visit_mut_wq_name(&mut self, node: &mut WqName)

Visit a node of type WqName. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> LayoutRaw for T

§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more