Struct RemoveConsole

Source
pub struct RemoveConsole { /* private fields */ }

Trait Implementations§

Source§

impl VisitMut for RemoveConsole

Source§

fn visit_mut_stmt(&mut self, stmt: &mut Stmt)

Visit a node of type Stmt. Read more
Source§

fn visit_mut_accessibility(&mut self, node: &mut Accessibility)

Visit a node of type Accessibility. Read more
Source§

fn visit_mut_array_lit(&mut self, node: &mut ArrayLit)

Visit a node of type ArrayLit. Read more
Source§

fn visit_mut_array_pat(&mut self, node: &mut ArrayPat)

Visit a node of type ArrayPat. Read more
Source§

fn visit_mut_arrow_expr(&mut self, node: &mut ArrowExpr)

Visit a node of type ArrowExpr. Read more
Source§

fn visit_mut_assign_expr(&mut self, node: &mut AssignExpr)

Visit a node of type AssignExpr. Read more
Source§

fn visit_mut_assign_op(&mut self, node: &mut AssignOp)

Visit a node of type AssignOp. Read more
Source§

fn visit_mut_assign_pat(&mut self, node: &mut AssignPat)

Visit a node of type AssignPat. Read more
Source§

fn visit_mut_assign_pat_prop(&mut self, node: &mut AssignPatProp)

Visit a node of type AssignPatProp. Read more
Source§

fn visit_mut_assign_prop(&mut self, node: &mut AssignProp)

Visit a node of type AssignProp. Read more
Source§

fn visit_mut_assign_target(&mut self, node: &mut AssignTarget)

Visit a node of type AssignTarget. Read more
Source§

fn visit_mut_assign_target_pat(&mut self, node: &mut AssignTargetPat)

Visit a node of type AssignTargetPat. Read more
Source§

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

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

fn visit_mut_auto_accessor(&mut self, node: &mut AutoAccessor)

Visit a node of type AutoAccessor. Read more
Source§

fn visit_mut_await_expr(&mut self, node: &mut AwaitExpr)

Visit a node of type AwaitExpr. Read more
Source§

fn visit_mut_big_int(&mut self, node: &mut BigInt)

Visit a node of type BigInt. Read more
Source§

fn visit_mut_big_int_value(&mut self, node: &mut BigInt)

Visit a node of type BigIntValue. Read more
Source§

fn visit_mut_bin_expr(&mut self, node: &mut BinExpr)

Visit a node of type BinExpr. Read more
Source§

fn visit_mut_binary_op(&mut self, node: &mut BinaryOp)

Visit a node of type BinaryOp. Read more
Source§

fn visit_mut_binding_ident(&mut self, node: &mut BindingIdent)

Visit a node of type BindingIdent. Read more
Source§

fn visit_mut_block_stmt(&mut self, node: &mut BlockStmt)

Visit a node of type BlockStmt. Read more
Source§

fn visit_mut_block_stmt_or_expr(&mut self, node: &mut BlockStmtOrExpr)

Visit a node of type BlockStmtOrExpr. Read more
Source§

fn visit_mut_bool(&mut self, node: &mut Bool)

Visit a node of type Bool. Read more
Source§

fn visit_mut_break_stmt(&mut self, node: &mut BreakStmt)

Visit a node of type BreakStmt. Read more
Source§

fn visit_mut_call_expr(&mut self, node: &mut CallExpr)

Visit a node of type CallExpr. Read more
Source§

fn visit_mut_callee(&mut self, node: &mut Callee)

Visit a node of type Callee. Read more
Source§

fn visit_mut_catch_clause(&mut self, node: &mut CatchClause)

Visit a node of type CatchClause. Read more
Source§

fn visit_mut_class(&mut self, node: &mut Class)

Visit a node of type Class. Read more
Source§

fn visit_mut_class_decl(&mut self, node: &mut ClassDecl)

Visit a node of type ClassDecl. Read more
Source§

fn visit_mut_class_expr(&mut self, node: &mut ClassExpr)

Visit a node of type ClassExpr. Read more
Source§

fn visit_mut_class_member(&mut self, node: &mut ClassMember)

Visit a node of type ClassMember. Read more
Source§

fn visit_mut_class_members(&mut self, node: &mut Vec<ClassMember>)

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

fn visit_mut_class_method(&mut self, node: &mut ClassMethod)

Visit a node of type ClassMethod. Read more
Source§

fn visit_mut_class_prop(&mut self, node: &mut ClassProp)

Visit a node of type ClassProp. Read more
Source§

fn visit_mut_computed_prop_name(&mut self, node: &mut ComputedPropName)

Visit a node of type ComputedPropName. Read more
Source§

fn visit_mut_cond_expr(&mut self, node: &mut CondExpr)

Visit a node of type CondExpr. Read more
Source§

fn visit_mut_constructor(&mut self, node: &mut Constructor)

Visit a node of type Constructor. Read more
Source§

fn visit_mut_continue_stmt(&mut self, node: &mut ContinueStmt)

Visit a node of type ContinueStmt. Read more
Source§

fn visit_mut_debugger_stmt(&mut self, node: &mut DebuggerStmt)

Visit a node of type DebuggerStmt. Read more
Source§

fn visit_mut_decl(&mut self, node: &mut Decl)

Visit a node of type Decl. Read more
Source§

fn visit_mut_decorator(&mut self, node: &mut Decorator)

Visit a node of type Decorator. Read more
Source§

fn visit_mut_decorators(&mut self, node: &mut Vec<Decorator>)

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

fn visit_mut_default_decl(&mut self, node: &mut DefaultDecl)

Visit a node of type DefaultDecl. Read more
Source§

fn visit_mut_do_while_stmt(&mut self, node: &mut DoWhileStmt)

Visit a node of type DoWhileStmt. Read more
Source§

fn visit_mut_empty_stmt(&mut self, node: &mut EmptyStmt)

Visit a node of type EmptyStmt. Read more
Source§

fn visit_mut_export_all(&mut self, node: &mut ExportAll)

Visit a node of type ExportAll. Read more
Source§

fn visit_mut_export_decl(&mut self, node: &mut ExportDecl)

Visit a node of type ExportDecl. Read more
Source§

fn visit_mut_export_default_decl(&mut self, node: &mut ExportDefaultDecl)

Visit a node of type ExportDefaultDecl. Read more
Source§

fn visit_mut_export_default_expr(&mut self, node: &mut ExportDefaultExpr)

Visit a node of type ExportDefaultExpr. Read more
Source§

fn visit_mut_export_default_specifier( &mut self, node: &mut ExportDefaultSpecifier, )

Visit a node of type ExportDefaultSpecifier. Read more
Source§

fn visit_mut_export_named_specifier(&mut self, node: &mut ExportNamedSpecifier)

Visit a node of type ExportNamedSpecifier. Read more
Source§

fn visit_mut_export_namespace_specifier( &mut self, node: &mut ExportNamespaceSpecifier, )

Visit a node of type ExportNamespaceSpecifier. Read more
Source§

fn visit_mut_export_specifier(&mut self, node: &mut ExportSpecifier)

Visit a node of type ExportSpecifier. Read more
Source§

fn visit_mut_export_specifiers(&mut self, node: &mut Vec<ExportSpecifier>)

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

fn visit_mut_expr(&mut self, node: &mut Expr)

Visit a node of type Expr. Read more
Source§

fn visit_mut_expr_or_spread(&mut self, node: &mut ExprOrSpread)

Visit a node of type ExprOrSpread. Read more
Source§

fn visit_mut_expr_or_spreads(&mut self, node: &mut Vec<ExprOrSpread>)

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

fn visit_mut_expr_stmt(&mut self, node: &mut ExprStmt)

Visit a node of type ExprStmt. Read more
Source§

fn visit_mut_exprs(&mut self, node: &mut Vec<Box<Expr>>)

Visit a node of type Vec < Box < Expr > >. Read more
Source§

fn visit_mut_fn_decl(&mut self, node: &mut FnDecl)

Visit a node of type FnDecl. Read more
Source§

fn visit_mut_fn_expr(&mut self, node: &mut FnExpr)

Visit a node of type FnExpr. Read more
Source§

fn visit_mut_for_head(&mut self, node: &mut ForHead)

Visit a node of type ForHead. Read more
Source§

fn visit_mut_for_in_stmt(&mut self, node: &mut ForInStmt)

Visit a node of type ForInStmt. Read more
Source§

fn visit_mut_for_of_stmt(&mut self, node: &mut ForOfStmt)

Visit a node of type ForOfStmt. Read more
Source§

fn visit_mut_for_stmt(&mut self, node: &mut ForStmt)

Visit a node of type ForStmt. Read more
Source§

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

Visit a node of type Function. Read more
Source§

fn visit_mut_getter_prop(&mut self, node: &mut GetterProp)

Visit a node of type GetterProp. Read more
Source§

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

Visit a node of type Ident. Read more
Source§

fn visit_mut_ident_name(&mut self, node: &mut IdentName)

Visit a node of type IdentName. Read more
Source§

fn visit_mut_if_stmt(&mut self, node: &mut IfStmt)

Visit a node of type IfStmt. Read more
Source§

fn visit_mut_import(&mut self, node: &mut Import)

Visit a node of type Import. Read more
Source§

fn visit_mut_import_decl(&mut self, node: &mut ImportDecl)

Visit a node of type ImportDecl. Read more
Source§

fn visit_mut_import_default_specifier( &mut self, node: &mut ImportDefaultSpecifier, )

Visit a node of type ImportDefaultSpecifier. Read more
Source§

fn visit_mut_import_named_specifier(&mut self, node: &mut ImportNamedSpecifier)

Visit a node of type ImportNamedSpecifier. Read more
Source§

fn visit_mut_import_phase(&mut self, node: &mut ImportPhase)

Visit a node of type ImportPhase. Read more
Source§

fn visit_mut_import_specifier(&mut self, node: &mut ImportSpecifier)

Visit a node of type ImportSpecifier. Read more
Source§

fn visit_mut_import_specifiers(&mut self, node: &mut Vec<ImportSpecifier>)

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

fn visit_mut_import_star_as_specifier( &mut self, node: &mut ImportStarAsSpecifier, )

Visit a node of type ImportStarAsSpecifier. Read more
Source§

fn visit_mut_import_with(&mut self, node: &mut ImportWith)

Visit a node of type ImportWith. Read more
Source§

fn visit_mut_import_with_item(&mut self, node: &mut ImportWithItem)

Visit a node of type ImportWithItem. Read more
Source§

fn visit_mut_import_with_items(&mut self, node: &mut Vec<ImportWithItem>)

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

fn visit_mut_invalid(&mut self, node: &mut Invalid)

Visit a node of type Invalid. Read more
Source§

fn visit_mut_jsx_attr(&mut self, node: &mut JSXAttr)

Visit a node of type JSXAttr. Read more
Source§

fn visit_mut_jsx_attr_name(&mut self, node: &mut JSXAttrName)

Visit a node of type JSXAttrName. Read more
Source§

fn visit_mut_jsx_attr_or_spread(&mut self, node: &mut JSXAttrOrSpread)

Visit a node of type JSXAttrOrSpread. Read more
Source§

fn visit_mut_jsx_attr_or_spreads(&mut self, node: &mut Vec<JSXAttrOrSpread>)

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

fn visit_mut_jsx_attr_value(&mut self, node: &mut JSXAttrValue)

Visit a node of type JSXAttrValue. Read more
Source§

fn visit_mut_jsx_closing_element(&mut self, node: &mut JSXClosingElement)

Visit a node of type JSXClosingElement. Read more
Source§

fn visit_mut_jsx_closing_fragment(&mut self, node: &mut JSXClosingFragment)

Visit a node of type JSXClosingFragment. Read more
Source§

fn visit_mut_jsx_element(&mut self, node: &mut JSXElement)

Visit a node of type JSXElement. Read more
Source§

fn visit_mut_jsx_element_child(&mut self, node: &mut JSXElementChild)

Visit a node of type JSXElementChild. Read more
Source§

fn visit_mut_jsx_element_childs(&mut self, node: &mut Vec<JSXElementChild>)

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

fn visit_mut_jsx_element_name(&mut self, node: &mut JSXElementName)

Visit a node of type JSXElementName. Read more
Source§

fn visit_mut_jsx_empty_expr(&mut self, node: &mut JSXEmptyExpr)

Visit a node of type JSXEmptyExpr. Read more
Source§

fn visit_mut_jsx_expr(&mut self, node: &mut JSXExpr)

Visit a node of type JSXExpr. Read more
Source§

fn visit_mut_jsx_expr_container(&mut self, node: &mut JSXExprContainer)

Visit a node of type JSXExprContainer. Read more
Source§

fn visit_mut_jsx_fragment(&mut self, node: &mut JSXFragment)

Visit a node of type JSXFragment. Read more
Source§

fn visit_mut_jsx_member_expr(&mut self, node: &mut JSXMemberExpr)

Visit a node of type JSXMemberExpr. Read more
Source§

fn visit_mut_jsx_namespaced_name(&mut self, node: &mut JSXNamespacedName)

Visit a node of type JSXNamespacedName. Read more
Source§

fn visit_mut_jsx_object(&mut self, node: &mut JSXObject)

Visit a node of type JSXObject. Read more
Source§

fn visit_mut_jsx_opening_element(&mut self, node: &mut JSXOpeningElement)

Visit a node of type JSXOpeningElement. Read more
Source§

fn visit_mut_jsx_opening_fragment(&mut self, node: &mut JSXOpeningFragment)

Visit a node of type JSXOpeningFragment. Read more
Source§

fn visit_mut_jsx_spread_child(&mut self, node: &mut JSXSpreadChild)

Visit a node of type JSXSpreadChild. Read more
Source§

fn visit_mut_jsx_text(&mut self, node: &mut JSXText)

Visit a node of type JSXText. Read more
Source§

fn visit_mut_key(&mut self, node: &mut Key)

Visit a node of type Key. Read more
Source§

fn visit_mut_key_value_pat_prop(&mut self, node: &mut KeyValuePatProp)

Visit a node of type KeyValuePatProp. Read more
Source§

fn visit_mut_key_value_prop(&mut self, node: &mut KeyValueProp)

Visit a node of type KeyValueProp. Read more
Source§

fn visit_mut_labeled_stmt(&mut self, node: &mut LabeledStmt)

Visit a node of type LabeledStmt. Read more
Source§

fn visit_mut_lit(&mut self, node: &mut Lit)

Visit a node of type Lit. Read more
Source§

fn visit_mut_member_expr(&mut self, node: &mut MemberExpr)

Visit a node of type MemberExpr. Read more
Source§

fn visit_mut_member_prop(&mut self, node: &mut MemberProp)

Visit a node of type MemberProp. Read more
Source§

fn visit_mut_meta_prop_expr(&mut self, node: &mut MetaPropExpr)

Visit a node of type MetaPropExpr. Read more
Source§

fn visit_mut_meta_prop_kind(&mut self, node: &mut MetaPropKind)

Visit a node of type MetaPropKind. Read more
Source§

fn visit_mut_method_kind(&mut self, node: &mut MethodKind)

Visit a node of type MethodKind. Read more
Source§

fn visit_mut_method_prop(&mut self, node: &mut MethodProp)

Visit a node of type MethodProp. Read more
Source§

fn visit_mut_module(&mut self, node: &mut Module)

Visit a node of type Module. Read more
Source§

fn visit_mut_module_decl(&mut self, node: &mut ModuleDecl)

Visit a node of type ModuleDecl. Read more
Source§

fn visit_mut_module_export_name(&mut self, node: &mut ModuleExportName)

Visit a node of type ModuleExportName. Read more
Source§

fn visit_mut_module_item(&mut self, node: &mut ModuleItem)

Visit a node of type ModuleItem. Read more
Source§

fn visit_mut_module_items(&mut self, node: &mut Vec<ModuleItem>)

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

fn visit_mut_named_export(&mut self, node: &mut NamedExport)

Visit a node of type NamedExport. Read more
Source§

fn visit_mut_new_expr(&mut self, node: &mut NewExpr)

Visit a node of type NewExpr. Read more
Source§

fn visit_mut_null(&mut self, node: &mut Null)

Visit a node of type Null. Read more
Source§

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

Visit a node of type Number. Read more
Source§

fn visit_mut_object_lit(&mut self, node: &mut ObjectLit)

Visit a node of type ObjectLit. Read more
Source§

fn visit_mut_object_pat(&mut self, node: &mut ObjectPat)

Visit a node of type ObjectPat. Read more
Source§

fn visit_mut_object_pat_prop(&mut self, node: &mut ObjectPatProp)

Visit a node of type ObjectPatProp. Read more
Source§

fn visit_mut_object_pat_props(&mut self, node: &mut Vec<ObjectPatProp>)

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

fn visit_mut_opt_accessibility(&mut self, node: &mut Option<Accessibility>)

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

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

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

fn visit_mut_opt_block_stmt(&mut self, node: &mut Option<BlockStmt>)

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

fn visit_mut_opt_call(&mut self, node: &mut OptCall)

Visit a node of type OptCall. Read more
Source§

fn visit_mut_opt_catch_clause(&mut self, node: &mut Option<CatchClause>)

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

fn visit_mut_opt_chain_base(&mut self, node: &mut OptChainBase)

Visit a node of type OptChainBase. Read more
Source§

fn visit_mut_opt_chain_expr(&mut self, node: &mut OptChainExpr)

Visit a node of type OptChainExpr. Read more
Source§

fn visit_mut_opt_expr(&mut self, node: &mut Option<Box<Expr>>)

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

fn visit_mut_opt_expr_or_spread(&mut self, node: &mut Option<ExprOrSpread>)

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

fn visit_mut_opt_expr_or_spreads( &mut self, node: &mut Option<Vec<ExprOrSpread>>, )

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

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

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

fn visit_mut_opt_jsx_attr_value(&mut self, node: &mut Option<JSXAttrValue>)

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

fn visit_mut_opt_jsx_closing_element( &mut self, node: &mut Option<JSXClosingElement>, )

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

fn visit_mut_opt_module_export_name( &mut self, node: &mut Option<ModuleExportName>, )

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

fn visit_mut_opt_object_lit(&mut self, node: &mut Option<Box<ObjectLit>>)

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

fn visit_mut_opt_pat(&mut self, node: &mut Option<Pat>)

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

fn visit_mut_opt_span(&mut self, node: &mut Option<Span>)

Visit a node of type Option < swc_common :: Span >. Read more
Source§

fn visit_mut_opt_stmt(&mut self, node: &mut Option<Box<Stmt>>)

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

fn visit_mut_opt_str(&mut self, node: &mut Option<Box<Str>>)

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

fn visit_mut_opt_true_plus_minus(&mut self, node: &mut Option<TruePlusMinus>)

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

fn visit_mut_opt_ts_entity_name(&mut self, node: &mut Option<TsEntityName>)

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

fn visit_mut_opt_ts_import_call_options( &mut self, node: &mut Option<TsImportCallOptions>, )

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

fn visit_mut_opt_ts_namespace_body( &mut self, node: &mut Option<TsNamespaceBody>, )

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

fn visit_mut_opt_ts_type(&mut self, node: &mut Option<Box<TsType>>)

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

fn visit_mut_opt_ts_type_ann(&mut self, node: &mut Option<Box<TsTypeAnn>>)

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

fn visit_mut_opt_ts_type_param_decl( &mut self, node: &mut Option<Box<TsTypeParamDecl>>, )

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

fn visit_mut_opt_ts_type_param_instantiation( &mut self, node: &mut Option<Box<TsTypeParamInstantiation>>, )

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

fn visit_mut_opt_var_decl_or_expr(&mut self, node: &mut Option<VarDeclOrExpr>)

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

fn visit_mut_opt_vec_expr_or_spreads( &mut self, node: &mut Vec<Option<ExprOrSpread>>, )

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

fn visit_mut_opt_vec_pats(&mut self, node: &mut Vec<Option<Pat>>)

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

fn visit_mut_param(&mut self, node: &mut Param)

Visit a node of type Param. Read more
Source§

fn visit_mut_param_or_ts_param_prop(&mut self, node: &mut ParamOrTsParamProp)

Visit a node of type ParamOrTsParamProp. Read more
Source§

fn visit_mut_param_or_ts_param_props( &mut self, node: &mut Vec<ParamOrTsParamProp>, )

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

fn visit_mut_params(&mut self, node: &mut Vec<Param>)

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

fn visit_mut_paren_expr(&mut self, node: &mut ParenExpr)

Visit a node of type ParenExpr. Read more
Source§

fn visit_mut_pat(&mut self, node: &mut Pat)

Visit a node of type Pat. Read more
Source§

fn visit_mut_pats(&mut self, node: &mut Vec<Pat>)

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

fn visit_mut_private_method(&mut self, node: &mut PrivateMethod)

Visit a node of type PrivateMethod. Read more
Source§

fn visit_mut_private_name(&mut self, node: &mut PrivateName)

Visit a node of type PrivateName. Read more
Source§

fn visit_mut_private_prop(&mut self, node: &mut PrivateProp)

Visit a node of type PrivateProp. Read more
Source§

fn visit_mut_program(&mut self, node: &mut Program)

Visit a node of type Program. Read more
Source§

fn visit_mut_prop(&mut self, node: &mut Prop)

Visit a node of type Prop. Read more
Source§

fn visit_mut_prop_name(&mut self, node: &mut PropName)

Visit a node of type PropName. Read more
Source§

fn visit_mut_prop_or_spread(&mut self, node: &mut PropOrSpread)

Visit a node of type PropOrSpread. Read more
Source§

fn visit_mut_prop_or_spreads(&mut self, node: &mut Vec<PropOrSpread>)

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

fn visit_mut_regex(&mut self, node: &mut Regex)

Visit a node of type Regex. Read more
Source§

fn visit_mut_rest_pat(&mut self, node: &mut RestPat)

Visit a node of type RestPat. Read more
Source§

fn visit_mut_return_stmt(&mut self, node: &mut ReturnStmt)

Visit a node of type ReturnStmt. Read more
Source§

fn visit_mut_script(&mut self, node: &mut Script)

Visit a node of type Script. Read more
Source§

fn visit_mut_seq_expr(&mut self, node: &mut SeqExpr)

Visit a node of type SeqExpr. Read more
Source§

fn visit_mut_setter_prop(&mut self, node: &mut SetterProp)

Visit a node of type SetterProp. Read more
Source§

fn visit_mut_simple_assign_target(&mut self, node: &mut SimpleAssignTarget)

Visit a node of type SimpleAssignTarget. Read more
Source§

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

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

fn visit_mut_spread_element(&mut self, node: &mut SpreadElement)

Visit a node of type SpreadElement. Read more
Source§

fn visit_mut_static_block(&mut self, node: &mut StaticBlock)

Visit a node of type StaticBlock. Read more
Source§

fn visit_mut_stmts(&mut self, node: &mut Vec<Stmt>)

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

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

Visit a node of type Str. Read more
Source§

fn visit_mut_super(&mut self, node: &mut Super)

Visit a node of type Super. Read more
Source§

fn visit_mut_super_prop(&mut self, node: &mut SuperProp)

Visit a node of type SuperProp. Read more
Source§

fn visit_mut_super_prop_expr(&mut self, node: &mut SuperPropExpr)

Visit a node of type SuperPropExpr. Read more
Source§

fn visit_mut_switch_case(&mut self, node: &mut SwitchCase)

Visit a node of type SwitchCase. Read more
Source§

fn visit_mut_switch_cases(&mut self, node: &mut Vec<SwitchCase>)

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

fn visit_mut_switch_stmt(&mut self, node: &mut SwitchStmt)

Visit a node of type SwitchStmt. Read more
Source§

fn visit_mut_syntax_context(&mut self, node: &mut SyntaxContext)

Visit a node of type swc_common :: SyntaxContext. Read more
Source§

fn visit_mut_tagged_tpl(&mut self, node: &mut TaggedTpl)

Visit a node of type TaggedTpl. Read more
Source§

fn visit_mut_this_expr(&mut self, node: &mut ThisExpr)

Visit a node of type ThisExpr. Read more
Source§

fn visit_mut_throw_stmt(&mut self, node: &mut ThrowStmt)

Visit a node of type ThrowStmt. Read more
Source§

fn visit_mut_tpl(&mut self, node: &mut Tpl)

Visit a node of type Tpl. Read more
Source§

fn visit_mut_tpl_element(&mut self, node: &mut TplElement)

Visit a node of type TplElement. Read more
Source§

fn visit_mut_tpl_elements(&mut self, node: &mut Vec<TplElement>)

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

fn visit_mut_true_plus_minus(&mut self, node: &mut TruePlusMinus)

Visit a node of type TruePlusMinus. Read more
Source§

fn visit_mut_try_stmt(&mut self, node: &mut TryStmt)

Visit a node of type TryStmt. Read more
Source§

fn visit_mut_ts_array_type(&mut self, node: &mut TsArrayType)

Visit a node of type TsArrayType. Read more
Source§

fn visit_mut_ts_as_expr(&mut self, node: &mut TsAsExpr)

Visit a node of type TsAsExpr. Read more
Source§

fn visit_mut_ts_call_signature_decl(&mut self, node: &mut TsCallSignatureDecl)

Visit a node of type TsCallSignatureDecl. Read more
Source§

fn visit_mut_ts_conditional_type(&mut self, node: &mut TsConditionalType)

Visit a node of type TsConditionalType. Read more
Source§

fn visit_mut_ts_const_assertion(&mut self, node: &mut TsConstAssertion)

Visit a node of type TsConstAssertion. Read more
Source§

fn visit_mut_ts_construct_signature_decl( &mut self, node: &mut TsConstructSignatureDecl, )

Visit a node of type TsConstructSignatureDecl. Read more
Source§

fn visit_mut_ts_constructor_type(&mut self, node: &mut TsConstructorType)

Visit a node of type TsConstructorType. Read more
Source§

fn visit_mut_ts_entity_name(&mut self, node: &mut TsEntityName)

Visit a node of type TsEntityName. Read more
Source§

fn visit_mut_ts_enum_decl(&mut self, node: &mut TsEnumDecl)

Visit a node of type TsEnumDecl. Read more
Source§

fn visit_mut_ts_enum_member(&mut self, node: &mut TsEnumMember)

Visit a node of type TsEnumMember. Read more
Source§

fn visit_mut_ts_enum_member_id(&mut self, node: &mut TsEnumMemberId)

Visit a node of type TsEnumMemberId. Read more
Source§

fn visit_mut_ts_enum_members(&mut self, node: &mut Vec<TsEnumMember>)

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

fn visit_mut_ts_export_assignment(&mut self, node: &mut TsExportAssignment)

Visit a node of type TsExportAssignment. Read more
Source§

fn visit_mut_ts_expr_with_type_args(&mut self, node: &mut TsExprWithTypeArgs)

Visit a node of type TsExprWithTypeArgs. Read more
Source§

fn visit_mut_ts_expr_with_type_argss( &mut self, node: &mut Vec<TsExprWithTypeArgs>, )

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

fn visit_mut_ts_external_module_ref(&mut self, node: &mut TsExternalModuleRef)

Visit a node of type TsExternalModuleRef. Read more
Source§

fn visit_mut_ts_fn_or_constructor_type( &mut self, node: &mut TsFnOrConstructorType, )

Visit a node of type TsFnOrConstructorType. Read more
Source§

fn visit_mut_ts_fn_param(&mut self, node: &mut TsFnParam)

Visit a node of type TsFnParam. Read more
Source§

fn visit_mut_ts_fn_params(&mut self, node: &mut Vec<TsFnParam>)

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

fn visit_mut_ts_fn_type(&mut self, node: &mut TsFnType)

Visit a node of type TsFnType. Read more
Source§

fn visit_mut_ts_getter_signature(&mut self, node: &mut TsGetterSignature)

Visit a node of type TsGetterSignature. Read more
Source§

fn visit_mut_ts_import_call_options(&mut self, node: &mut TsImportCallOptions)

Visit a node of type TsImportCallOptions. Read more
Source§

fn visit_mut_ts_import_equals_decl(&mut self, node: &mut TsImportEqualsDecl)

Visit a node of type TsImportEqualsDecl. Read more
Source§

fn visit_mut_ts_import_type(&mut self, node: &mut TsImportType)

Visit a node of type TsImportType. Read more
Source§

fn visit_mut_ts_index_signature(&mut self, node: &mut TsIndexSignature)

Visit a node of type TsIndexSignature. Read more
Source§

fn visit_mut_ts_indexed_access_type(&mut self, node: &mut TsIndexedAccessType)

Visit a node of type TsIndexedAccessType. Read more
Source§

fn visit_mut_ts_infer_type(&mut self, node: &mut TsInferType)

Visit a node of type TsInferType. Read more
Source§

fn visit_mut_ts_instantiation(&mut self, node: &mut TsInstantiation)

Visit a node of type TsInstantiation. Read more
Source§

fn visit_mut_ts_interface_body(&mut self, node: &mut TsInterfaceBody)

Visit a node of type TsInterfaceBody. Read more
Source§

fn visit_mut_ts_interface_decl(&mut self, node: &mut TsInterfaceDecl)

Visit a node of type TsInterfaceDecl. Read more
Source§

fn visit_mut_ts_intersection_type(&mut self, node: &mut TsIntersectionType)

Visit a node of type TsIntersectionType. Read more
Source§

fn visit_mut_ts_keyword_type(&mut self, node: &mut TsKeywordType)

Visit a node of type TsKeywordType. Read more
Source§

fn visit_mut_ts_keyword_type_kind(&mut self, node: &mut TsKeywordTypeKind)

Visit a node of type TsKeywordTypeKind. Read more
Source§

fn visit_mut_ts_lit(&mut self, node: &mut TsLit)

Visit a node of type TsLit. Read more
Source§

fn visit_mut_ts_lit_type(&mut self, node: &mut TsLitType)

Visit a node of type TsLitType. Read more
Source§

fn visit_mut_ts_mapped_type(&mut self, node: &mut TsMappedType)

Visit a node of type TsMappedType. Read more
Source§

fn visit_mut_ts_method_signature(&mut self, node: &mut TsMethodSignature)

Visit a node of type TsMethodSignature. Read more
Source§

fn visit_mut_ts_module_block(&mut self, node: &mut TsModuleBlock)

Visit a node of type TsModuleBlock. Read more
Source§

fn visit_mut_ts_module_decl(&mut self, node: &mut TsModuleDecl)

Visit a node of type TsModuleDecl. Read more
Source§

fn visit_mut_ts_module_name(&mut self, node: &mut TsModuleName)

Visit a node of type TsModuleName. Read more
Source§

fn visit_mut_ts_module_ref(&mut self, node: &mut TsModuleRef)

Visit a node of type TsModuleRef. Read more
Source§

fn visit_mut_ts_namespace_body(&mut self, node: &mut TsNamespaceBody)

Visit a node of type TsNamespaceBody. Read more
Source§

fn visit_mut_ts_namespace_decl(&mut self, node: &mut TsNamespaceDecl)

Visit a node of type TsNamespaceDecl. Read more
Source§

fn visit_mut_ts_namespace_export_decl( &mut self, node: &mut TsNamespaceExportDecl, )

Visit a node of type TsNamespaceExportDecl. Read more
Source§

fn visit_mut_ts_non_null_expr(&mut self, node: &mut TsNonNullExpr)

Visit a node of type TsNonNullExpr. Read more
Source§

fn visit_mut_ts_optional_type(&mut self, node: &mut TsOptionalType)

Visit a node of type TsOptionalType. Read more
Source§

fn visit_mut_ts_param_prop(&mut self, node: &mut TsParamProp)

Visit a node of type TsParamProp. Read more
Source§

fn visit_mut_ts_param_prop_param(&mut self, node: &mut TsParamPropParam)

Visit a node of type TsParamPropParam. Read more
Source§

fn visit_mut_ts_parenthesized_type(&mut self, node: &mut TsParenthesizedType)

Visit a node of type TsParenthesizedType. Read more
Source§

fn visit_mut_ts_property_signature(&mut self, node: &mut TsPropertySignature)

Visit a node of type TsPropertySignature. Read more
Source§

fn visit_mut_ts_qualified_name(&mut self, node: &mut TsQualifiedName)

Visit a node of type TsQualifiedName. Read more
Source§

fn visit_mut_ts_rest_type(&mut self, node: &mut TsRestType)

Visit a node of type TsRestType. Read more
Source§

fn visit_mut_ts_satisfies_expr(&mut self, node: &mut TsSatisfiesExpr)

Visit a node of type TsSatisfiesExpr. Read more
Source§

fn visit_mut_ts_setter_signature(&mut self, node: &mut TsSetterSignature)

Visit a node of type TsSetterSignature. Read more
Source§

fn visit_mut_ts_this_type(&mut self, node: &mut TsThisType)

Visit a node of type TsThisType. Read more
Source§

fn visit_mut_ts_this_type_or_ident(&mut self, node: &mut TsThisTypeOrIdent)

Visit a node of type TsThisTypeOrIdent. Read more
Source§

fn visit_mut_ts_tpl_lit_type(&mut self, node: &mut TsTplLitType)

Visit a node of type TsTplLitType. Read more
Source§

fn visit_mut_ts_tuple_element(&mut self, node: &mut TsTupleElement)

Visit a node of type TsTupleElement. Read more
Source§

fn visit_mut_ts_tuple_elements(&mut self, node: &mut Vec<TsTupleElement>)

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

fn visit_mut_ts_tuple_type(&mut self, node: &mut TsTupleType)

Visit a node of type TsTupleType. Read more
Source§

fn visit_mut_ts_type(&mut self, node: &mut TsType)

Visit a node of type TsType. Read more
Source§

fn visit_mut_ts_type_alias_decl(&mut self, node: &mut TsTypeAliasDecl)

Visit a node of type TsTypeAliasDecl. Read more
Source§

fn visit_mut_ts_type_ann(&mut self, node: &mut TsTypeAnn)

Visit a node of type TsTypeAnn. Read more
Source§

fn visit_mut_ts_type_assertion(&mut self, node: &mut TsTypeAssertion)

Visit a node of type TsTypeAssertion. Read more
Source§

fn visit_mut_ts_type_element(&mut self, node: &mut TsTypeElement)

Visit a node of type TsTypeElement. Read more
Source§

fn visit_mut_ts_type_elements(&mut self, node: &mut Vec<TsTypeElement>)

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

fn visit_mut_ts_type_lit(&mut self, node: &mut TsTypeLit)

Visit a node of type TsTypeLit. Read more
Source§

fn visit_mut_ts_type_operator(&mut self, node: &mut TsTypeOperator)

Visit a node of type TsTypeOperator. Read more
Source§

fn visit_mut_ts_type_operator_op(&mut self, node: &mut TsTypeOperatorOp)

Visit a node of type TsTypeOperatorOp. Read more
Source§

fn visit_mut_ts_type_param(&mut self, node: &mut TsTypeParam)

Visit a node of type TsTypeParam. Read more
Source§

fn visit_mut_ts_type_param_decl(&mut self, node: &mut TsTypeParamDecl)

Visit a node of type TsTypeParamDecl. Read more
Source§

fn visit_mut_ts_type_param_instantiation( &mut self, node: &mut TsTypeParamInstantiation, )

Visit a node of type TsTypeParamInstantiation. Read more
Source§

fn visit_mut_ts_type_params(&mut self, node: &mut Vec<TsTypeParam>)

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

fn visit_mut_ts_type_predicate(&mut self, node: &mut TsTypePredicate)

Visit a node of type TsTypePredicate. Read more
Source§

fn visit_mut_ts_type_query(&mut self, node: &mut TsTypeQuery)

Visit a node of type TsTypeQuery. Read more
Source§

fn visit_mut_ts_type_query_expr(&mut self, node: &mut TsTypeQueryExpr)

Visit a node of type TsTypeQueryExpr. Read more
Source§

fn visit_mut_ts_type_ref(&mut self, node: &mut TsTypeRef)

Visit a node of type TsTypeRef. Read more
Source§

fn visit_mut_ts_types(&mut self, node: &mut Vec<Box<TsType>>)

Visit a node of type Vec < Box < TsType > >. Read more
Source§

fn visit_mut_ts_union_or_intersection_type( &mut self, node: &mut TsUnionOrIntersectionType, )

Visit a node of type TsUnionOrIntersectionType. Read more
Source§

fn visit_mut_ts_union_type(&mut self, node: &mut TsUnionType)

Visit a node of type TsUnionType. Read more
Source§

fn visit_mut_unary_expr(&mut self, node: &mut UnaryExpr)

Visit a node of type UnaryExpr. Read more
Source§

fn visit_mut_unary_op(&mut self, node: &mut UnaryOp)

Visit a node of type UnaryOp. Read more
Source§

fn visit_mut_update_expr(&mut self, node: &mut UpdateExpr)

Visit a node of type UpdateExpr. Read more
Source§

fn visit_mut_update_op(&mut self, node: &mut UpdateOp)

Visit a node of type UpdateOp. Read more
Source§

fn visit_mut_using_decl(&mut self, node: &mut UsingDecl)

Visit a node of type UsingDecl. Read more
Source§

fn visit_mut_var_decl(&mut self, node: &mut VarDecl)

Visit a node of type VarDecl. Read more
Source§

fn visit_mut_var_decl_kind(&mut self, node: &mut VarDeclKind)

Visit a node of type VarDeclKind. Read more
Source§

fn visit_mut_var_decl_or_expr(&mut self, node: &mut VarDeclOrExpr)

Visit a node of type VarDeclOrExpr. Read more
Source§

fn visit_mut_var_declarator(&mut self, node: &mut VarDeclarator)

Visit a node of type VarDeclarator. Read more
Source§

fn visit_mut_var_declarators(&mut self, node: &mut Vec<VarDeclarator>)

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

fn visit_mut_while_stmt(&mut self, node: &mut WhileStmt)

Visit a node of type WhileStmt. Read more
Source§

fn visit_mut_with_stmt(&mut self, node: &mut WithStmt)

Visit a node of type WithStmt. Read more
Source§

fn visit_mut_yield_expr(&mut self, node: &mut YieldExpr)

Visit a node of type YieldExpr. 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
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

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

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
Source§

impl<T> Conv for T

Source§

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

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

impl<T> FmtForward for T

Source§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

Source§

impl<T> Instrument for T

Source§

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

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

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
Source§

impl<T> LayoutRaw for T

Source§

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

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

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

Source§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
Source§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
Source§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
Source§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
Source§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
Source§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
Source§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
Source§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
Source§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
Source§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
Source§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling Attribute value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
Source§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi Quirk value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
Source§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
Source§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the Condition value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

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

Source§

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
Source§

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
Source§

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
Source§

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
Source§

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
Source§

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.
Source§

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.
Source§

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.
Source§

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.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

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

Immutable access to a value. Read more
Source§

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

Mutable access to a value. Read more
Source§

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
Source§

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
Source§

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
Source§

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
Source§

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
Source§

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
Source§

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

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

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

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

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.
Source§

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.
Source§

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.
Source§

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.
Source§

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.
Source§

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.
Source§

impl<T> TryConv for T

Source§

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

Source§

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

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T