Trait dprint_swc_ext::view::CastableNode

source ·
pub trait CastableNode<'a> {
    // Required methods
    fn to(node: &Node<'a>) -> Option<&'a Self>;
    fn kind() -> NodeKind;
}

Required Methods§

source

fn to(node: &Node<'a>) -> Option<&'a Self>

source

fn kind() -> NodeKind

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> CastableNode<'a> for ArrayLit<'a>

source§

impl<'a> CastableNode<'a> for ArrayPat<'a>

source§

impl<'a> CastableNode<'a> for ArrowExpr<'a>

source§

impl<'a> CastableNode<'a> for AssignExpr<'a>

source§

impl<'a> CastableNode<'a> for AssignPat<'a>

source§

impl<'a> CastableNode<'a> for AssignPatProp<'a>

source§

impl<'a> CastableNode<'a> for AssignProp<'a>

source§

impl<'a> CastableNode<'a> for AutoAccessor<'a>

source§

impl<'a> CastableNode<'a> for AwaitExpr<'a>

source§

impl<'a> CastableNode<'a> for BigInt<'a>

source§

impl<'a> CastableNode<'a> for BinExpr<'a>

source§

impl<'a> CastableNode<'a> for BindingIdent<'a>

source§

impl<'a> CastableNode<'a> for BlockStmt<'a>

source§

impl<'a> CastableNode<'a> for Bool<'a>

source§

impl<'a> CastableNode<'a> for BreakStmt<'a>

source§

impl<'a> CastableNode<'a> for CallExpr<'a>

source§

impl<'a> CastableNode<'a> for CatchClause<'a>

source§

impl<'a> CastableNode<'a> for Class<'a>

source§

impl<'a> CastableNode<'a> for ClassDecl<'a>

source§

impl<'a> CastableNode<'a> for ClassExpr<'a>

source§

impl<'a> CastableNode<'a> for ClassMethod<'a>

source§

impl<'a> CastableNode<'a> for ClassProp<'a>

source§

impl<'a> CastableNode<'a> for ComputedPropName<'a>

source§

impl<'a> CastableNode<'a> for CondExpr<'a>

source§

impl<'a> CastableNode<'a> for Constructor<'a>

source§

impl<'a> CastableNode<'a> for ContinueStmt<'a>

source§

impl<'a> CastableNode<'a> for DebuggerStmt<'a>

source§

impl<'a> CastableNode<'a> for Decorator<'a>

source§

impl<'a> CastableNode<'a> for DoWhileStmt<'a>

source§

impl<'a> CastableNode<'a> for EmptyStmt<'a>

source§

impl<'a> CastableNode<'a> for ExportAll<'a>

source§

impl<'a> CastableNode<'a> for ExportDecl<'a>

source§

impl<'a> CastableNode<'a> for ExportDefaultDecl<'a>

source§

impl<'a> CastableNode<'a> for ExportDefaultExpr<'a>

source§

impl<'a> CastableNode<'a> for ExportDefaultSpecifier<'a>

source§

impl<'a> CastableNode<'a> for ExportNamedSpecifier<'a>

source§

impl<'a> CastableNode<'a> for ExportNamespaceSpecifier<'a>

source§

impl<'a> CastableNode<'a> for ExprOrSpread<'a>

source§

impl<'a> CastableNode<'a> for ExprStmt<'a>

source§

impl<'a> CastableNode<'a> for FnDecl<'a>

source§

impl<'a> CastableNode<'a> for FnExpr<'a>

source§

impl<'a> CastableNode<'a> for ForInStmt<'a>

source§

impl<'a> CastableNode<'a> for ForOfStmt<'a>

source§

impl<'a> CastableNode<'a> for ForStmt<'a>

source§

impl<'a> CastableNode<'a> for Function<'a>

source§

impl<'a> CastableNode<'a> for GetterProp<'a>

source§

impl<'a> CastableNode<'a> for Ident<'a>

source§

impl<'a> CastableNode<'a> for IdentName<'a>

source§

impl<'a> CastableNode<'a> for IfStmt<'a>

source§

impl<'a> CastableNode<'a> for Import<'a>

source§

impl<'a> CastableNode<'a> for ImportDecl<'a>

source§

impl<'a> CastableNode<'a> for ImportDefaultSpecifier<'a>

source§

impl<'a> CastableNode<'a> for ImportNamedSpecifier<'a>

source§

impl<'a> CastableNode<'a> for ImportStarAsSpecifier<'a>

source§

impl<'a> CastableNode<'a> for Invalid<'a>

source§

impl<'a> CastableNode<'a> for JSXAttr<'a>

source§

impl<'a> CastableNode<'a> for JSXClosingElement<'a>

source§

impl<'a> CastableNode<'a> for JSXClosingFragment<'a>

source§

impl<'a> CastableNode<'a> for JSXElement<'a>

source§

impl<'a> CastableNode<'a> for JSXEmptyExpr<'a>

source§

impl<'a> CastableNode<'a> for JSXExprContainer<'a>

source§

impl<'a> CastableNode<'a> for JSXFragment<'a>

source§

impl<'a> CastableNode<'a> for JSXMemberExpr<'a>

source§

impl<'a> CastableNode<'a> for JSXNamespacedName<'a>

source§

impl<'a> CastableNode<'a> for JSXOpeningElement<'a>

source§

impl<'a> CastableNode<'a> for JSXOpeningFragment<'a>

source§

impl<'a> CastableNode<'a> for JSXSpreadChild<'a>

source§

impl<'a> CastableNode<'a> for JSXText<'a>

source§

impl<'a> CastableNode<'a> for KeyValuePatProp<'a>

source§

impl<'a> CastableNode<'a> for KeyValueProp<'a>

source§

impl<'a> CastableNode<'a> for LabeledStmt<'a>

source§

impl<'a> CastableNode<'a> for MemberExpr<'a>

source§

impl<'a> CastableNode<'a> for MetaPropExpr<'a>

source§

impl<'a> CastableNode<'a> for MethodProp<'a>

source§

impl<'a> CastableNode<'a> for Module<'a>

source§

impl<'a> CastableNode<'a> for NamedExport<'a>

source§

impl<'a> CastableNode<'a> for NewExpr<'a>

source§

impl<'a> CastableNode<'a> for Null<'a>

source§

impl<'a> CastableNode<'a> for Number<'a>

source§

impl<'a> CastableNode<'a> for ObjectLit<'a>

source§

impl<'a> CastableNode<'a> for ObjectPat<'a>

source§

impl<'a> CastableNode<'a> for OptCall<'a>

source§

impl<'a> CastableNode<'a> for OptChainExpr<'a>

source§

impl<'a> CastableNode<'a> for Param<'a>

source§

impl<'a> CastableNode<'a> for ParenExpr<'a>

source§

impl<'a> CastableNode<'a> for PrivateMethod<'a>

source§

impl<'a> CastableNode<'a> for PrivateName<'a>

source§

impl<'a> CastableNode<'a> for PrivateProp<'a>

source§

impl<'a> CastableNode<'a> for Regex<'a>

source§

impl<'a> CastableNode<'a> for RestPat<'a>

source§

impl<'a> CastableNode<'a> for ReturnStmt<'a>

source§

impl<'a> CastableNode<'a> for Script<'a>

source§

impl<'a> CastableNode<'a> for SeqExpr<'a>

source§

impl<'a> CastableNode<'a> for SetterProp<'a>

source§

impl<'a> CastableNode<'a> for SpreadElement<'a>

source§

impl<'a> CastableNode<'a> for StaticBlock<'a>

source§

impl<'a> CastableNode<'a> for Str<'a>

source§

impl<'a> CastableNode<'a> for Super<'a>

source§

impl<'a> CastableNode<'a> for SuperPropExpr<'a>

source§

impl<'a> CastableNode<'a> for SwitchCase<'a>

source§

impl<'a> CastableNode<'a> for SwitchStmt<'a>

source§

impl<'a> CastableNode<'a> for TaggedTpl<'a>

source§

impl<'a> CastableNode<'a> for ThisExpr<'a>

source§

impl<'a> CastableNode<'a> for ThrowStmt<'a>

source§

impl<'a> CastableNode<'a> for Tpl<'a>

source§

impl<'a> CastableNode<'a> for TplElement<'a>

source§

impl<'a> CastableNode<'a> for TryStmt<'a>

source§

impl<'a> CastableNode<'a> for TsArrayType<'a>

source§

impl<'a> CastableNode<'a> for TsAsExpr<'a>

source§

impl<'a> CastableNode<'a> for TsCallSignatureDecl<'a>

source§

impl<'a> CastableNode<'a> for TsConditionalType<'a>

source§

impl<'a> CastableNode<'a> for TsConstAssertion<'a>

source§

impl<'a> CastableNode<'a> for TsConstructSignatureDecl<'a>

source§

impl<'a> CastableNode<'a> for TsConstructorType<'a>

source§

impl<'a> CastableNode<'a> for TsEnumDecl<'a>

source§

impl<'a> CastableNode<'a> for TsEnumMember<'a>

source§

impl<'a> CastableNode<'a> for TsExportAssignment<'a>

source§

impl<'a> CastableNode<'a> for TsExprWithTypeArgs<'a>

source§

impl<'a> CastableNode<'a> for TsExternalModuleRef<'a>

source§

impl<'a> CastableNode<'a> for TsFnType<'a>

source§

impl<'a> CastableNode<'a> for TsGetterSignature<'a>

source§

impl<'a> CastableNode<'a> for TsImportEqualsDecl<'a>

source§

impl<'a> CastableNode<'a> for TsImportType<'a>

source§

impl<'a> CastableNode<'a> for TsIndexSignature<'a>

source§

impl<'a> CastableNode<'a> for TsIndexedAccessType<'a>

source§

impl<'a> CastableNode<'a> for TsInferType<'a>

source§

impl<'a> CastableNode<'a> for TsInstantiation<'a>

source§

impl<'a> CastableNode<'a> for TsInterfaceBody<'a>

source§

impl<'a> CastableNode<'a> for TsInterfaceDecl<'a>

source§

impl<'a> CastableNode<'a> for TsIntersectionType<'a>

source§

impl<'a> CastableNode<'a> for TsKeywordType<'a>

source§

impl<'a> CastableNode<'a> for TsLitType<'a>

source§

impl<'a> CastableNode<'a> for TsMappedType<'a>

source§

impl<'a> CastableNode<'a> for TsMethodSignature<'a>

source§

impl<'a> CastableNode<'a> for TsModuleBlock<'a>

source§

impl<'a> CastableNode<'a> for TsModuleDecl<'a>

source§

impl<'a> CastableNode<'a> for TsNamespaceDecl<'a>

source§

impl<'a> CastableNode<'a> for TsNamespaceExportDecl<'a>

source§

impl<'a> CastableNode<'a> for TsNonNullExpr<'a>

source§

impl<'a> CastableNode<'a> for TsOptionalType<'a>

source§

impl<'a> CastableNode<'a> for TsParamProp<'a>

source§

impl<'a> CastableNode<'a> for TsParenthesizedType<'a>

source§

impl<'a> CastableNode<'a> for TsPropertySignature<'a>

source§

impl<'a> CastableNode<'a> for TsQualifiedName<'a>

source§

impl<'a> CastableNode<'a> for TsRestType<'a>

source§

impl<'a> CastableNode<'a> for TsSatisfiesExpr<'a>

source§

impl<'a> CastableNode<'a> for TsSetterSignature<'a>

source§

impl<'a> CastableNode<'a> for TsThisType<'a>

source§

impl<'a> CastableNode<'a> for TsTplLitType<'a>

source§

impl<'a> CastableNode<'a> for TsTupleElement<'a>

source§

impl<'a> CastableNode<'a> for TsTupleType<'a>

source§

impl<'a> CastableNode<'a> for TsTypeAliasDecl<'a>

source§

impl<'a> CastableNode<'a> for TsTypeAnn<'a>

source§

impl<'a> CastableNode<'a> for TsTypeAssertion<'a>

source§

impl<'a> CastableNode<'a> for TsTypeLit<'a>

source§

impl<'a> CastableNode<'a> for TsTypeOperator<'a>

source§

impl<'a> CastableNode<'a> for TsTypeParam<'a>

source§

impl<'a> CastableNode<'a> for TsTypeParamDecl<'a>

source§

impl<'a> CastableNode<'a> for TsTypeParamInstantiation<'a>

source§

impl<'a> CastableNode<'a> for TsTypePredicate<'a>

source§

impl<'a> CastableNode<'a> for TsTypeQuery<'a>

source§

impl<'a> CastableNode<'a> for TsTypeRef<'a>

source§

impl<'a> CastableNode<'a> for TsUnionType<'a>

source§

impl<'a> CastableNode<'a> for UnaryExpr<'a>

source§

impl<'a> CastableNode<'a> for UpdateExpr<'a>

source§

impl<'a> CastableNode<'a> for UsingDecl<'a>

source§

impl<'a> CastableNode<'a> for VarDecl<'a>

source§

impl<'a> CastableNode<'a> for VarDeclarator<'a>

source§

impl<'a> CastableNode<'a> for WhileStmt<'a>

source§

impl<'a> CastableNode<'a> for WithStmt<'a>

source§

impl<'a> CastableNode<'a> for YieldExpr<'a>