Enum dprint_swc_ecma_ast_view::Node
source · [−]pub enum Node<'a> {
Show 167 variants
ArrayLit(&'a ArrayLit<'a>),
ArrayPat(&'a ArrayPat<'a>),
ArrowExpr(&'a ArrowExpr<'a>),
AssignExpr(&'a AssignExpr<'a>),
AssignPat(&'a AssignPat<'a>),
AssignPatProp(&'a AssignPatProp<'a>),
AssignProp(&'a AssignProp<'a>),
AwaitExpr(&'a AwaitExpr<'a>),
BigInt(&'a BigInt<'a>),
BinExpr(&'a BinExpr<'a>),
BindingIdent(&'a BindingIdent<'a>),
BlockStmt(&'a BlockStmt<'a>),
Bool(&'a Bool<'a>),
BreakStmt(&'a BreakStmt<'a>),
CallExpr(&'a CallExpr<'a>),
CatchClause(&'a CatchClause<'a>),
Class(&'a Class<'a>),
ClassDecl(&'a ClassDecl<'a>),
ClassExpr(&'a ClassExpr<'a>),
ClassMethod(&'a ClassMethod<'a>),
ClassProp(&'a ClassProp<'a>),
ComputedPropName(&'a ComputedPropName<'a>),
CondExpr(&'a CondExpr<'a>),
Constructor(&'a Constructor<'a>),
ContinueStmt(&'a ContinueStmt<'a>),
DebuggerStmt(&'a DebuggerStmt<'a>),
Decorator(&'a Decorator<'a>),
DoWhileStmt(&'a DoWhileStmt<'a>),
EmptyStmt(&'a EmptyStmt<'a>),
ExportAll(&'a ExportAll<'a>),
ExportDecl(&'a ExportDecl<'a>),
ExportDefaultDecl(&'a ExportDefaultDecl<'a>),
ExportDefaultExpr(&'a ExportDefaultExpr<'a>),
ExportDefaultSpecifier(&'a ExportDefaultSpecifier<'a>),
ExportNamedSpecifier(&'a ExportNamedSpecifier<'a>),
ExportNamespaceSpecifier(&'a ExportNamespaceSpecifier<'a>),
ExprOrSpread(&'a ExprOrSpread<'a>),
ExprStmt(&'a ExprStmt<'a>),
FnDecl(&'a FnDecl<'a>),
FnExpr(&'a FnExpr<'a>),
ForInStmt(&'a ForInStmt<'a>),
ForOfStmt(&'a ForOfStmt<'a>),
ForStmt(&'a ForStmt<'a>),
Function(&'a Function<'a>),
GetterProp(&'a GetterProp<'a>),
Ident(&'a Ident<'a>),
IfStmt(&'a IfStmt<'a>),
Import(&'a Import<'a>),
ImportDecl(&'a ImportDecl<'a>),
ImportDefaultSpecifier(&'a ImportDefaultSpecifier<'a>),
ImportNamedSpecifier(&'a ImportNamedSpecifier<'a>),
ImportStarAsSpecifier(&'a ImportStarAsSpecifier<'a>),
Invalid(&'a Invalid<'a>),
JSXAttr(&'a JSXAttr<'a>),
JSXClosingElement(&'a JSXClosingElement<'a>),
JSXClosingFragment(&'a JSXClosingFragment<'a>),
JSXElement(&'a JSXElement<'a>),
JSXEmptyExpr(&'a JSXEmptyExpr<'a>),
JSXExprContainer(&'a JSXExprContainer<'a>),
JSXFragment(&'a JSXFragment<'a>),
JSXMemberExpr(&'a JSXMemberExpr<'a>),
JSXNamespacedName(&'a JSXNamespacedName<'a>),
JSXOpeningElement(&'a JSXOpeningElement<'a>),
JSXOpeningFragment(&'a JSXOpeningFragment<'a>),
JSXSpreadChild(&'a JSXSpreadChild<'a>),
JSXText(&'a JSXText<'a>),
KeyValuePatProp(&'a KeyValuePatProp<'a>),
KeyValueProp(&'a KeyValueProp<'a>),
LabeledStmt(&'a LabeledStmt<'a>),
MemberExpr(&'a MemberExpr<'a>),
MetaPropExpr(&'a MetaPropExpr<'a>),
MethodProp(&'a MethodProp<'a>),
Module(&'a Module<'a>),
NamedExport(&'a NamedExport<'a>),
NewExpr(&'a NewExpr<'a>),
Null(&'a Null<'a>),
Number(&'a Number<'a>),
ObjectLit(&'a ObjectLit<'a>),
ObjectPat(&'a ObjectPat<'a>),
OptCall(&'a OptCall<'a>),
OptChainExpr(&'a OptChainExpr<'a>),
Param(&'a Param<'a>),
ParenExpr(&'a ParenExpr<'a>),
PrivateMethod(&'a PrivateMethod<'a>),
PrivateName(&'a PrivateName<'a>),
PrivateProp(&'a PrivateProp<'a>),
Regex(&'a Regex<'a>),
RestPat(&'a RestPat<'a>),
ReturnStmt(&'a ReturnStmt<'a>),
Script(&'a Script<'a>),
SeqExpr(&'a SeqExpr<'a>),
SetterProp(&'a SetterProp<'a>),
SpreadElement(&'a SpreadElement<'a>),
StaticBlock(&'a StaticBlock<'a>),
Str(&'a Str<'a>),
Super(&'a Super<'a>),
SuperPropExpr(&'a SuperPropExpr<'a>),
SwitchCase(&'a SwitchCase<'a>),
SwitchStmt(&'a SwitchStmt<'a>),
TaggedTpl(&'a TaggedTpl<'a>),
ThisExpr(&'a ThisExpr<'a>),
ThrowStmt(&'a ThrowStmt<'a>),
Tpl(&'a Tpl<'a>),
TplElement(&'a TplElement<'a>),
TryStmt(&'a TryStmt<'a>),
TsArrayType(&'a TsArrayType<'a>),
TsAsExpr(&'a TsAsExpr<'a>),
TsCallSignatureDecl(&'a TsCallSignatureDecl<'a>),
TsConditionalType(&'a TsConditionalType<'a>),
TsConstAssertion(&'a TsConstAssertion<'a>),
TsConstructSignatureDecl(&'a TsConstructSignatureDecl<'a>),
TsConstructorType(&'a TsConstructorType<'a>),
TsEnumDecl(&'a TsEnumDecl<'a>),
TsEnumMember(&'a TsEnumMember<'a>),
TsExportAssignment(&'a TsExportAssignment<'a>),
TsExprWithTypeArgs(&'a TsExprWithTypeArgs<'a>),
TsExternalModuleRef(&'a TsExternalModuleRef<'a>),
TsFnType(&'a TsFnType<'a>),
TsGetterSignature(&'a TsGetterSignature<'a>),
TsImportEqualsDecl(&'a TsImportEqualsDecl<'a>),
TsImportType(&'a TsImportType<'a>),
TsIndexSignature(&'a TsIndexSignature<'a>),
TsIndexedAccessType(&'a TsIndexedAccessType<'a>),
TsInferType(&'a TsInferType<'a>),
TsInstantiation(&'a TsInstantiation<'a>),
TsInterfaceBody(&'a TsInterfaceBody<'a>),
TsInterfaceDecl(&'a TsInterfaceDecl<'a>),
TsIntersectionType(&'a TsIntersectionType<'a>),
TsKeywordType(&'a TsKeywordType<'a>),
TsLitType(&'a TsLitType<'a>),
TsMappedType(&'a TsMappedType<'a>),
TsMethodSignature(&'a TsMethodSignature<'a>),
TsModuleBlock(&'a TsModuleBlock<'a>),
TsModuleDecl(&'a TsModuleDecl<'a>),
TsNamespaceDecl(&'a TsNamespaceDecl<'a>),
TsNamespaceExportDecl(&'a TsNamespaceExportDecl<'a>),
TsNonNullExpr(&'a TsNonNullExpr<'a>),
TsOptionalType(&'a TsOptionalType<'a>),
TsParamProp(&'a TsParamProp<'a>),
TsParenthesizedType(&'a TsParenthesizedType<'a>),
TsPropertySignature(&'a TsPropertySignature<'a>),
TsQualifiedName(&'a TsQualifiedName<'a>),
TsRestType(&'a TsRestType<'a>),
TsSetterSignature(&'a TsSetterSignature<'a>),
TsThisType(&'a TsThisType<'a>),
TsTplLitType(&'a TsTplLitType<'a>),
TsTupleElement(&'a TsTupleElement<'a>),
TsTupleType(&'a TsTupleType<'a>),
TsTypeAliasDecl(&'a TsTypeAliasDecl<'a>),
TsTypeAnn(&'a TsTypeAnn<'a>),
TsTypeAssertion(&'a TsTypeAssertion<'a>),
TsTypeLit(&'a TsTypeLit<'a>),
TsTypeOperator(&'a TsTypeOperator<'a>),
TsTypeParam(&'a TsTypeParam<'a>),
TsTypeParamDecl(&'a TsTypeParamDecl<'a>),
TsTypeParamInstantiation(&'a TsTypeParamInstantiation<'a>),
TsTypePredicate(&'a TsTypePredicate<'a>),
TsTypeQuery(&'a TsTypeQuery<'a>),
TsTypeRef(&'a TsTypeRef<'a>),
TsUnionType(&'a TsUnionType<'a>),
UnaryExpr(&'a UnaryExpr<'a>),
UpdateExpr(&'a UpdateExpr<'a>),
VarDecl(&'a VarDecl<'a>),
VarDeclarator(&'a VarDeclarator<'a>),
WhileStmt(&'a WhileStmt<'a>),
WithStmt(&'a WithStmt<'a>),
YieldExpr(&'a YieldExpr<'a>),
}
Variants
ArrayLit(&'a ArrayLit<'a>)
ArrayPat(&'a ArrayPat<'a>)
ArrowExpr(&'a ArrowExpr<'a>)
AssignExpr(&'a AssignExpr<'a>)
AssignPat(&'a AssignPat<'a>)
AssignPatProp(&'a AssignPatProp<'a>)
AssignProp(&'a AssignProp<'a>)
AwaitExpr(&'a AwaitExpr<'a>)
BigInt(&'a BigInt<'a>)
BinExpr(&'a BinExpr<'a>)
BindingIdent(&'a BindingIdent<'a>)
BlockStmt(&'a BlockStmt<'a>)
Bool(&'a Bool<'a>)
BreakStmt(&'a BreakStmt<'a>)
CallExpr(&'a CallExpr<'a>)
CatchClause(&'a CatchClause<'a>)
Class(&'a Class<'a>)
ClassDecl(&'a ClassDecl<'a>)
ClassExpr(&'a ClassExpr<'a>)
ClassMethod(&'a ClassMethod<'a>)
ClassProp(&'a ClassProp<'a>)
ComputedPropName(&'a ComputedPropName<'a>)
CondExpr(&'a CondExpr<'a>)
Constructor(&'a Constructor<'a>)
ContinueStmt(&'a ContinueStmt<'a>)
DebuggerStmt(&'a DebuggerStmt<'a>)
Decorator(&'a Decorator<'a>)
DoWhileStmt(&'a DoWhileStmt<'a>)
EmptyStmt(&'a EmptyStmt<'a>)
ExportAll(&'a ExportAll<'a>)
ExportDecl(&'a ExportDecl<'a>)
ExportDefaultDecl(&'a ExportDefaultDecl<'a>)
ExportDefaultExpr(&'a ExportDefaultExpr<'a>)
ExportDefaultSpecifier(&'a ExportDefaultSpecifier<'a>)
ExportNamedSpecifier(&'a ExportNamedSpecifier<'a>)
ExportNamespaceSpecifier(&'a ExportNamespaceSpecifier<'a>)
ExprOrSpread(&'a ExprOrSpread<'a>)
ExprStmt(&'a ExprStmt<'a>)
FnDecl(&'a FnDecl<'a>)
FnExpr(&'a FnExpr<'a>)
ForInStmt(&'a ForInStmt<'a>)
ForOfStmt(&'a ForOfStmt<'a>)
ForStmt(&'a ForStmt<'a>)
Function(&'a Function<'a>)
GetterProp(&'a GetterProp<'a>)
Ident(&'a Ident<'a>)
IfStmt(&'a IfStmt<'a>)
Import(&'a Import<'a>)
ImportDecl(&'a ImportDecl<'a>)
ImportDefaultSpecifier(&'a ImportDefaultSpecifier<'a>)
ImportNamedSpecifier(&'a ImportNamedSpecifier<'a>)
ImportStarAsSpecifier(&'a ImportStarAsSpecifier<'a>)
Invalid(&'a Invalid<'a>)
JSXAttr(&'a JSXAttr<'a>)
JSXClosingElement(&'a JSXClosingElement<'a>)
JSXClosingFragment(&'a JSXClosingFragment<'a>)
JSXElement(&'a JSXElement<'a>)
JSXEmptyExpr(&'a JSXEmptyExpr<'a>)
JSXExprContainer(&'a JSXExprContainer<'a>)
JSXFragment(&'a JSXFragment<'a>)
JSXMemberExpr(&'a JSXMemberExpr<'a>)
JSXNamespacedName(&'a JSXNamespacedName<'a>)
JSXOpeningElement(&'a JSXOpeningElement<'a>)
JSXOpeningFragment(&'a JSXOpeningFragment<'a>)
JSXSpreadChild(&'a JSXSpreadChild<'a>)
JSXText(&'a JSXText<'a>)
KeyValuePatProp(&'a KeyValuePatProp<'a>)
KeyValueProp(&'a KeyValueProp<'a>)
LabeledStmt(&'a LabeledStmt<'a>)
MemberExpr(&'a MemberExpr<'a>)
MetaPropExpr(&'a MetaPropExpr<'a>)
MethodProp(&'a MethodProp<'a>)
Module(&'a Module<'a>)
NamedExport(&'a NamedExport<'a>)
NewExpr(&'a NewExpr<'a>)
Null(&'a Null<'a>)
Number(&'a Number<'a>)
ObjectLit(&'a ObjectLit<'a>)
ObjectPat(&'a ObjectPat<'a>)
OptCall(&'a OptCall<'a>)
OptChainExpr(&'a OptChainExpr<'a>)
Param(&'a Param<'a>)
ParenExpr(&'a ParenExpr<'a>)
PrivateMethod(&'a PrivateMethod<'a>)
PrivateName(&'a PrivateName<'a>)
PrivateProp(&'a PrivateProp<'a>)
Regex(&'a Regex<'a>)
RestPat(&'a RestPat<'a>)
ReturnStmt(&'a ReturnStmt<'a>)
Script(&'a Script<'a>)
SeqExpr(&'a SeqExpr<'a>)
SetterProp(&'a SetterProp<'a>)
SpreadElement(&'a SpreadElement<'a>)
StaticBlock(&'a StaticBlock<'a>)
Str(&'a Str<'a>)
Super(&'a Super<'a>)
SuperPropExpr(&'a SuperPropExpr<'a>)
SwitchCase(&'a SwitchCase<'a>)
SwitchStmt(&'a SwitchStmt<'a>)
TaggedTpl(&'a TaggedTpl<'a>)
ThisExpr(&'a ThisExpr<'a>)
ThrowStmt(&'a ThrowStmt<'a>)
Tpl(&'a Tpl<'a>)
TplElement(&'a TplElement<'a>)
TryStmt(&'a TryStmt<'a>)
TsArrayType(&'a TsArrayType<'a>)
TsAsExpr(&'a TsAsExpr<'a>)
TsCallSignatureDecl(&'a TsCallSignatureDecl<'a>)
TsConditionalType(&'a TsConditionalType<'a>)
TsConstAssertion(&'a TsConstAssertion<'a>)
TsConstructSignatureDecl(&'a TsConstructSignatureDecl<'a>)
TsConstructorType(&'a TsConstructorType<'a>)
TsEnumDecl(&'a TsEnumDecl<'a>)
TsEnumMember(&'a TsEnumMember<'a>)
TsExportAssignment(&'a TsExportAssignment<'a>)
TsExprWithTypeArgs(&'a TsExprWithTypeArgs<'a>)
TsExternalModuleRef(&'a TsExternalModuleRef<'a>)
TsFnType(&'a TsFnType<'a>)
TsGetterSignature(&'a TsGetterSignature<'a>)
TsImportEqualsDecl(&'a TsImportEqualsDecl<'a>)
TsImportType(&'a TsImportType<'a>)
TsIndexSignature(&'a TsIndexSignature<'a>)
TsIndexedAccessType(&'a TsIndexedAccessType<'a>)
TsInferType(&'a TsInferType<'a>)
TsInstantiation(&'a TsInstantiation<'a>)
TsInterfaceBody(&'a TsInterfaceBody<'a>)
TsInterfaceDecl(&'a TsInterfaceDecl<'a>)
TsIntersectionType(&'a TsIntersectionType<'a>)
TsKeywordType(&'a TsKeywordType<'a>)
TsLitType(&'a TsLitType<'a>)
TsMappedType(&'a TsMappedType<'a>)
TsMethodSignature(&'a TsMethodSignature<'a>)
TsModuleBlock(&'a TsModuleBlock<'a>)
TsModuleDecl(&'a TsModuleDecl<'a>)
TsNamespaceDecl(&'a TsNamespaceDecl<'a>)
TsNamespaceExportDecl(&'a TsNamespaceExportDecl<'a>)
TsNonNullExpr(&'a TsNonNullExpr<'a>)
TsOptionalType(&'a TsOptionalType<'a>)
TsParamProp(&'a TsParamProp<'a>)
TsParenthesizedType(&'a TsParenthesizedType<'a>)
TsPropertySignature(&'a TsPropertySignature<'a>)
TsQualifiedName(&'a TsQualifiedName<'a>)
TsRestType(&'a TsRestType<'a>)
TsSetterSignature(&'a TsSetterSignature<'a>)
TsThisType(&'a TsThisType<'a>)
TsTplLitType(&'a TsTplLitType<'a>)
TsTupleElement(&'a TsTupleElement<'a>)
TsTupleType(&'a TsTupleType<'a>)
TsTypeAliasDecl(&'a TsTypeAliasDecl<'a>)
TsTypeAnn(&'a TsTypeAnn<'a>)
TsTypeAssertion(&'a TsTypeAssertion<'a>)
TsTypeLit(&'a TsTypeLit<'a>)
TsTypeOperator(&'a TsTypeOperator<'a>)
TsTypeParam(&'a TsTypeParam<'a>)
TsTypeParamDecl(&'a TsTypeParamDecl<'a>)
TsTypeParamInstantiation(&'a TsTypeParamInstantiation<'a>)
TsTypePredicate(&'a TsTypePredicate<'a>)
TsTypeQuery(&'a TsTypeQuery<'a>)
TsTypeRef(&'a TsTypeRef<'a>)
TsUnionType(&'a TsUnionType<'a>)
UnaryExpr(&'a UnaryExpr<'a>)
UpdateExpr(&'a UpdateExpr<'a>)
VarDecl(&'a VarDecl<'a>)
VarDeclarator(&'a VarDeclarator<'a>)
WhileStmt(&'a WhileStmt<'a>)
WithStmt(&'a WithStmt<'a>)
YieldExpr(&'a YieldExpr<'a>)
Implementations
sourceimpl<'a> Node<'a>
impl<'a> Node<'a>
pub fn to<T: CastableNode<'a>>(&self) -> Option<&'a T>
pub fn expect<T: CastableNode<'a>>(&self) -> &'a T
pub fn is<T: CastableNode<'a>>(&self) -> bool
Trait Implementations
sourceimpl<'a> From<&'_ AssignExpr<'a>> for Node<'a>
impl<'a> From<&'_ AssignExpr<'a>> for Node<'a>
sourcefn from(node: &AssignExpr<'a>) -> Node<'a>
fn from(node: &AssignExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ AssignPatProp<'a>> for Node<'a>
impl<'a> From<&'_ AssignPatProp<'a>> for Node<'a>
sourcefn from(node: &AssignPatProp<'a>) -> Node<'a>
fn from(node: &AssignPatProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ AssignProp<'a>> for Node<'a>
impl<'a> From<&'_ AssignProp<'a>> for Node<'a>
sourcefn from(node: &AssignProp<'a>) -> Node<'a>
fn from(node: &AssignProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ BindingIdent<'a>> for Node<'a>
impl<'a> From<&'_ BindingIdent<'a>> for Node<'a>
sourcefn from(node: &BindingIdent<'a>) -> Node<'a>
fn from(node: &BindingIdent<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ BlockStmtOrExpr<'a>> for Node<'a>
impl<'a> From<&'_ BlockStmtOrExpr<'a>> for Node<'a>
sourcefn from(node: &BlockStmtOrExpr<'a>) -> Node<'a>
fn from(node: &BlockStmtOrExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ CatchClause<'a>> for Node<'a>
impl<'a> From<&'_ CatchClause<'a>> for Node<'a>
sourcefn from(node: &CatchClause<'a>) -> Node<'a>
fn from(node: &CatchClause<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ClassMember<'a>> for Node<'a>
impl<'a> From<&'_ ClassMember<'a>> for Node<'a>
sourcefn from(node: &ClassMember<'a>) -> Node<'a>
fn from(node: &ClassMember<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ClassMethod<'a>> for Node<'a>
impl<'a> From<&'_ ClassMethod<'a>> for Node<'a>
sourcefn from(node: &ClassMethod<'a>) -> Node<'a>
fn from(node: &ClassMethod<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ComputedPropName<'a>> for Node<'a>
impl<'a> From<&'_ ComputedPropName<'a>> for Node<'a>
sourcefn from(node: &ComputedPropName<'a>) -> Node<'a>
fn from(node: &ComputedPropName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ Constructor<'a>> for Node<'a>
impl<'a> From<&'_ Constructor<'a>> for Node<'a>
sourcefn from(node: &Constructor<'a>) -> Node<'a>
fn from(node: &Constructor<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ContinueStmt<'a>> for Node<'a>
impl<'a> From<&'_ ContinueStmt<'a>> for Node<'a>
sourcefn from(node: &ContinueStmt<'a>) -> Node<'a>
fn from(node: &ContinueStmt<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ DebuggerStmt<'a>> for Node<'a>
impl<'a> From<&'_ DebuggerStmt<'a>> for Node<'a>
sourcefn from(node: &DebuggerStmt<'a>) -> Node<'a>
fn from(node: &DebuggerStmt<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ DefaultDecl<'a>> for Node<'a>
impl<'a> From<&'_ DefaultDecl<'a>> for Node<'a>
sourcefn from(node: &DefaultDecl<'a>) -> Node<'a>
fn from(node: &DefaultDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ DoWhileStmt<'a>> for Node<'a>
impl<'a> From<&'_ DoWhileStmt<'a>> for Node<'a>
sourcefn from(node: &DoWhileStmt<'a>) -> Node<'a>
fn from(node: &DoWhileStmt<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExportDecl<'a>> for Node<'a>
impl<'a> From<&'_ ExportDecl<'a>> for Node<'a>
sourcefn from(node: &ExportDecl<'a>) -> Node<'a>
fn from(node: &ExportDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExportDefaultDecl<'a>> for Node<'a>
impl<'a> From<&'_ ExportDefaultDecl<'a>> for Node<'a>
sourcefn from(node: &ExportDefaultDecl<'a>) -> Node<'a>
fn from(node: &ExportDefaultDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExportDefaultExpr<'a>> for Node<'a>
impl<'a> From<&'_ ExportDefaultExpr<'a>> for Node<'a>
sourcefn from(node: &ExportDefaultExpr<'a>) -> Node<'a>
fn from(node: &ExportDefaultExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExportDefaultSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ExportDefaultSpecifier<'a>> for Node<'a>
sourcefn from(node: &ExportDefaultSpecifier<'a>) -> Node<'a>
fn from(node: &ExportDefaultSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExportNamedSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ExportNamedSpecifier<'a>> for Node<'a>
sourcefn from(node: &ExportNamedSpecifier<'a>) -> Node<'a>
fn from(node: &ExportNamedSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExportNamespaceSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ExportNamespaceSpecifier<'a>> for Node<'a>
sourcefn from(node: &ExportNamespaceSpecifier<'a>) -> Node<'a>
fn from(node: &ExportNamespaceSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExportSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ExportSpecifier<'a>> for Node<'a>
sourcefn from(node: &ExportSpecifier<'a>) -> Node<'a>
fn from(node: &ExportSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ExprOrSpread<'a>> for Node<'a>
impl<'a> From<&'_ ExprOrSpread<'a>> for Node<'a>
sourcefn from(node: &ExprOrSpread<'a>) -> Node<'a>
fn from(node: &ExprOrSpread<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ GetterProp<'a>> for Node<'a>
impl<'a> From<&'_ GetterProp<'a>> for Node<'a>
sourcefn from(node: &GetterProp<'a>) -> Node<'a>
fn from(node: &GetterProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ImportDecl<'a>> for Node<'a>
impl<'a> From<&'_ ImportDecl<'a>> for Node<'a>
sourcefn from(node: &ImportDecl<'a>) -> Node<'a>
fn from(node: &ImportDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ImportDefaultSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ImportDefaultSpecifier<'a>> for Node<'a>
sourcefn from(node: &ImportDefaultSpecifier<'a>) -> Node<'a>
fn from(node: &ImportDefaultSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ImportNamedSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ImportNamedSpecifier<'a>> for Node<'a>
sourcefn from(node: &ImportNamedSpecifier<'a>) -> Node<'a>
fn from(node: &ImportNamedSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ImportSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ImportSpecifier<'a>> for Node<'a>
sourcefn from(node: &ImportSpecifier<'a>) -> Node<'a>
fn from(node: &ImportSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ImportStarAsSpecifier<'a>> for Node<'a>
impl<'a> From<&'_ ImportStarAsSpecifier<'a>> for Node<'a>
sourcefn from(node: &ImportStarAsSpecifier<'a>) -> Node<'a>
fn from(node: &ImportStarAsSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXAttrName<'a>> for Node<'a>
impl<'a> From<&'_ JSXAttrName<'a>> for Node<'a>
sourcefn from(node: &JSXAttrName<'a>) -> Node<'a>
fn from(node: &JSXAttrName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXAttrOrSpread<'a>> for Node<'a>
impl<'a> From<&'_ JSXAttrOrSpread<'a>> for Node<'a>
sourcefn from(node: &JSXAttrOrSpread<'a>) -> Node<'a>
fn from(node: &JSXAttrOrSpread<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXAttrValue<'a>> for Node<'a>
impl<'a> From<&'_ JSXAttrValue<'a>> for Node<'a>
sourcefn from(node: &JSXAttrValue<'a>) -> Node<'a>
fn from(node: &JSXAttrValue<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXClosingElement<'a>> for Node<'a>
impl<'a> From<&'_ JSXClosingElement<'a>> for Node<'a>
sourcefn from(node: &JSXClosingElement<'a>) -> Node<'a>
fn from(node: &JSXClosingElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXClosingFragment<'a>> for Node<'a>
impl<'a> From<&'_ JSXClosingFragment<'a>> for Node<'a>
sourcefn from(node: &JSXClosingFragment<'a>) -> Node<'a>
fn from(node: &JSXClosingFragment<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXElement<'a>> for Node<'a>
impl<'a> From<&'_ JSXElement<'a>> for Node<'a>
sourcefn from(node: &JSXElement<'a>) -> Node<'a>
fn from(node: &JSXElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXElementChild<'a>> for Node<'a>
impl<'a> From<&'_ JSXElementChild<'a>> for Node<'a>
sourcefn from(node: &JSXElementChild<'a>) -> Node<'a>
fn from(node: &JSXElementChild<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXElementName<'a>> for Node<'a>
impl<'a> From<&'_ JSXElementName<'a>> for Node<'a>
sourcefn from(node: &JSXElementName<'a>) -> Node<'a>
fn from(node: &JSXElementName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXEmptyExpr<'a>> for Node<'a>
impl<'a> From<&'_ JSXEmptyExpr<'a>> for Node<'a>
sourcefn from(node: &JSXEmptyExpr<'a>) -> Node<'a>
fn from(node: &JSXEmptyExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXExprContainer<'a>> for Node<'a>
impl<'a> From<&'_ JSXExprContainer<'a>> for Node<'a>
sourcefn from(node: &JSXExprContainer<'a>) -> Node<'a>
fn from(node: &JSXExprContainer<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXFragment<'a>> for Node<'a>
impl<'a> From<&'_ JSXFragment<'a>> for Node<'a>
sourcefn from(node: &JSXFragment<'a>) -> Node<'a>
fn from(node: &JSXFragment<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXMemberExpr<'a>> for Node<'a>
impl<'a> From<&'_ JSXMemberExpr<'a>> for Node<'a>
sourcefn from(node: &JSXMemberExpr<'a>) -> Node<'a>
fn from(node: &JSXMemberExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXNamespacedName<'a>> for Node<'a>
impl<'a> From<&'_ JSXNamespacedName<'a>> for Node<'a>
sourcefn from(node: &JSXNamespacedName<'a>) -> Node<'a>
fn from(node: &JSXNamespacedName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXOpeningElement<'a>> for Node<'a>
impl<'a> From<&'_ JSXOpeningElement<'a>> for Node<'a>
sourcefn from(node: &JSXOpeningElement<'a>) -> Node<'a>
fn from(node: &JSXOpeningElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXOpeningFragment<'a>> for Node<'a>
impl<'a> From<&'_ JSXOpeningFragment<'a>> for Node<'a>
sourcefn from(node: &JSXOpeningFragment<'a>) -> Node<'a>
fn from(node: &JSXOpeningFragment<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ JSXSpreadChild<'a>> for Node<'a>
impl<'a> From<&'_ JSXSpreadChild<'a>> for Node<'a>
sourcefn from(node: &JSXSpreadChild<'a>) -> Node<'a>
fn from(node: &JSXSpreadChild<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ KeyValuePatProp<'a>> for Node<'a>
impl<'a> From<&'_ KeyValuePatProp<'a>> for Node<'a>
sourcefn from(node: &KeyValuePatProp<'a>) -> Node<'a>
fn from(node: &KeyValuePatProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ KeyValueProp<'a>> for Node<'a>
impl<'a> From<&'_ KeyValueProp<'a>> for Node<'a>
sourcefn from(node: &KeyValueProp<'a>) -> Node<'a>
fn from(node: &KeyValueProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ LabeledStmt<'a>> for Node<'a>
impl<'a> From<&'_ LabeledStmt<'a>> for Node<'a>
sourcefn from(node: &LabeledStmt<'a>) -> Node<'a>
fn from(node: &LabeledStmt<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ MemberExpr<'a>> for Node<'a>
impl<'a> From<&'_ MemberExpr<'a>> for Node<'a>
sourcefn from(node: &MemberExpr<'a>) -> Node<'a>
fn from(node: &MemberExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ MemberProp<'a>> for Node<'a>
impl<'a> From<&'_ MemberProp<'a>> for Node<'a>
sourcefn from(node: &MemberProp<'a>) -> Node<'a>
fn from(node: &MemberProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ MetaPropExpr<'a>> for Node<'a>
impl<'a> From<&'_ MetaPropExpr<'a>> for Node<'a>
sourcefn from(node: &MetaPropExpr<'a>) -> Node<'a>
fn from(node: &MetaPropExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ MethodProp<'a>> for Node<'a>
impl<'a> From<&'_ MethodProp<'a>> for Node<'a>
sourcefn from(node: &MethodProp<'a>) -> Node<'a>
fn from(node: &MethodProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ModuleDecl<'a>> for Node<'a>
impl<'a> From<&'_ ModuleDecl<'a>> for Node<'a>
sourcefn from(node: &ModuleDecl<'a>) -> Node<'a>
fn from(node: &ModuleDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ModuleExportName<'a>> for Node<'a>
impl<'a> From<&'_ ModuleExportName<'a>> for Node<'a>
sourcefn from(node: &ModuleExportName<'a>) -> Node<'a>
fn from(node: &ModuleExportName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ModuleItem<'a>> for Node<'a>
impl<'a> From<&'_ ModuleItem<'a>> for Node<'a>
sourcefn from(node: &ModuleItem<'a>) -> Node<'a>
fn from(node: &ModuleItem<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ NamedExport<'a>> for Node<'a>
impl<'a> From<&'_ NamedExport<'a>> for Node<'a>
sourcefn from(node: &NamedExport<'a>) -> Node<'a>
fn from(node: &NamedExport<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ObjectPatProp<'a>> for Node<'a>
impl<'a> From<&'_ ObjectPatProp<'a>> for Node<'a>
sourcefn from(node: &ObjectPatProp<'a>) -> Node<'a>
fn from(node: &ObjectPatProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ OptChainBase<'a>> for Node<'a>
impl<'a> From<&'_ OptChainBase<'a>> for Node<'a>
sourcefn from(node: &OptChainBase<'a>) -> Node<'a>
fn from(node: &OptChainBase<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ OptChainExpr<'a>> for Node<'a>
impl<'a> From<&'_ OptChainExpr<'a>> for Node<'a>
sourcefn from(node: &OptChainExpr<'a>) -> Node<'a>
fn from(node: &OptChainExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ParamOrTsParamProp<'a>> for Node<'a>
impl<'a> From<&'_ ParamOrTsParamProp<'a>> for Node<'a>
sourcefn from(node: &ParamOrTsParamProp<'a>) -> Node<'a>
fn from(node: &ParamOrTsParamProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ PrivateMethod<'a>> for Node<'a>
impl<'a> From<&'_ PrivateMethod<'a>> for Node<'a>
sourcefn from(node: &PrivateMethod<'a>) -> Node<'a>
fn from(node: &PrivateMethod<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ PrivateName<'a>> for Node<'a>
impl<'a> From<&'_ PrivateName<'a>> for Node<'a>
sourcefn from(node: &PrivateName<'a>) -> Node<'a>
fn from(node: &PrivateName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ PrivateProp<'a>> for Node<'a>
impl<'a> From<&'_ PrivateProp<'a>> for Node<'a>
sourcefn from(node: &PrivateProp<'a>) -> Node<'a>
fn from(node: &PrivateProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ PropOrSpread<'a>> for Node<'a>
impl<'a> From<&'_ PropOrSpread<'a>> for Node<'a>
sourcefn from(node: &PropOrSpread<'a>) -> Node<'a>
fn from(node: &PropOrSpread<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ ReturnStmt<'a>> for Node<'a>
impl<'a> From<&'_ ReturnStmt<'a>> for Node<'a>
sourcefn from(node: &ReturnStmt<'a>) -> Node<'a>
fn from(node: &ReturnStmt<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ SetterProp<'a>> for Node<'a>
impl<'a> From<&'_ SetterProp<'a>> for Node<'a>
sourcefn from(node: &SetterProp<'a>) -> Node<'a>
fn from(node: &SetterProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ SpreadElement<'a>> for Node<'a>
impl<'a> From<&'_ SpreadElement<'a>> for Node<'a>
sourcefn from(node: &SpreadElement<'a>) -> Node<'a>
fn from(node: &SpreadElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ StaticBlock<'a>> for Node<'a>
impl<'a> From<&'_ StaticBlock<'a>> for Node<'a>
sourcefn from(node: &StaticBlock<'a>) -> Node<'a>
fn from(node: &StaticBlock<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ SuperPropExpr<'a>> for Node<'a>
impl<'a> From<&'_ SuperPropExpr<'a>> for Node<'a>
sourcefn from(node: &SuperPropExpr<'a>) -> Node<'a>
fn from(node: &SuperPropExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ SwitchCase<'a>> for Node<'a>
impl<'a> From<&'_ SwitchCase<'a>> for Node<'a>
sourcefn from(node: &SwitchCase<'a>) -> Node<'a>
fn from(node: &SwitchCase<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ SwitchStmt<'a>> for Node<'a>
impl<'a> From<&'_ SwitchStmt<'a>> for Node<'a>
sourcefn from(node: &SwitchStmt<'a>) -> Node<'a>
fn from(node: &SwitchStmt<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TplElement<'a>> for Node<'a>
impl<'a> From<&'_ TplElement<'a>> for Node<'a>
sourcefn from(node: &TplElement<'a>) -> Node<'a>
fn from(node: &TplElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsArrayType<'a>> for Node<'a>
impl<'a> From<&'_ TsArrayType<'a>> for Node<'a>
sourcefn from(node: &TsArrayType<'a>) -> Node<'a>
fn from(node: &TsArrayType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsCallSignatureDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsCallSignatureDecl<'a>> for Node<'a>
sourcefn from(node: &TsCallSignatureDecl<'a>) -> Node<'a>
fn from(node: &TsCallSignatureDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsConditionalType<'a>> for Node<'a>
impl<'a> From<&'_ TsConditionalType<'a>> for Node<'a>
sourcefn from(node: &TsConditionalType<'a>) -> Node<'a>
fn from(node: &TsConditionalType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsConstAssertion<'a>> for Node<'a>
impl<'a> From<&'_ TsConstAssertion<'a>> for Node<'a>
sourcefn from(node: &TsConstAssertion<'a>) -> Node<'a>
fn from(node: &TsConstAssertion<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsConstructSignatureDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsConstructSignatureDecl<'a>> for Node<'a>
sourcefn from(node: &TsConstructSignatureDecl<'a>) -> Node<'a>
fn from(node: &TsConstructSignatureDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsConstructorType<'a>> for Node<'a>
impl<'a> From<&'_ TsConstructorType<'a>> for Node<'a>
sourcefn from(node: &TsConstructorType<'a>) -> Node<'a>
fn from(node: &TsConstructorType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsEntityName<'a>> for Node<'a>
impl<'a> From<&'_ TsEntityName<'a>> for Node<'a>
sourcefn from(node: &TsEntityName<'a>) -> Node<'a>
fn from(node: &TsEntityName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsEnumDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsEnumDecl<'a>> for Node<'a>
sourcefn from(node: &TsEnumDecl<'a>) -> Node<'a>
fn from(node: &TsEnumDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsEnumMember<'a>> for Node<'a>
impl<'a> From<&'_ TsEnumMember<'a>> for Node<'a>
sourcefn from(node: &TsEnumMember<'a>) -> Node<'a>
fn from(node: &TsEnumMember<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsEnumMemberId<'a>> for Node<'a>
impl<'a> From<&'_ TsEnumMemberId<'a>> for Node<'a>
sourcefn from(node: &TsEnumMemberId<'a>) -> Node<'a>
fn from(node: &TsEnumMemberId<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsExportAssignment<'a>> for Node<'a>
impl<'a> From<&'_ TsExportAssignment<'a>> for Node<'a>
sourcefn from(node: &TsExportAssignment<'a>) -> Node<'a>
fn from(node: &TsExportAssignment<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsExprWithTypeArgs<'a>> for Node<'a>
impl<'a> From<&'_ TsExprWithTypeArgs<'a>> for Node<'a>
sourcefn from(node: &TsExprWithTypeArgs<'a>) -> Node<'a>
fn from(node: &TsExprWithTypeArgs<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsExternalModuleRef<'a>> for Node<'a>
impl<'a> From<&'_ TsExternalModuleRef<'a>> for Node<'a>
sourcefn from(node: &TsExternalModuleRef<'a>) -> Node<'a>
fn from(node: &TsExternalModuleRef<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsFnOrConstructorType<'a>> for Node<'a>
impl<'a> From<&'_ TsFnOrConstructorType<'a>> for Node<'a>
sourcefn from(node: &TsFnOrConstructorType<'a>) -> Node<'a>
fn from(node: &TsFnOrConstructorType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsGetterSignature<'a>> for Node<'a>
impl<'a> From<&'_ TsGetterSignature<'a>> for Node<'a>
sourcefn from(node: &TsGetterSignature<'a>) -> Node<'a>
fn from(node: &TsGetterSignature<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsImportEqualsDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsImportEqualsDecl<'a>> for Node<'a>
sourcefn from(node: &TsImportEqualsDecl<'a>) -> Node<'a>
fn from(node: &TsImportEqualsDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsImportType<'a>> for Node<'a>
impl<'a> From<&'_ TsImportType<'a>> for Node<'a>
sourcefn from(node: &TsImportType<'a>) -> Node<'a>
fn from(node: &TsImportType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsIndexSignature<'a>> for Node<'a>
impl<'a> From<&'_ TsIndexSignature<'a>> for Node<'a>
sourcefn from(node: &TsIndexSignature<'a>) -> Node<'a>
fn from(node: &TsIndexSignature<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsIndexedAccessType<'a>> for Node<'a>
impl<'a> From<&'_ TsIndexedAccessType<'a>> for Node<'a>
sourcefn from(node: &TsIndexedAccessType<'a>) -> Node<'a>
fn from(node: &TsIndexedAccessType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsInferType<'a>> for Node<'a>
impl<'a> From<&'_ TsInferType<'a>> for Node<'a>
sourcefn from(node: &TsInferType<'a>) -> Node<'a>
fn from(node: &TsInferType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsInstantiation<'a>> for Node<'a>
impl<'a> From<&'_ TsInstantiation<'a>> for Node<'a>
sourcefn from(node: &TsInstantiation<'a>) -> Node<'a>
fn from(node: &TsInstantiation<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsInterfaceBody<'a>> for Node<'a>
impl<'a> From<&'_ TsInterfaceBody<'a>> for Node<'a>
sourcefn from(node: &TsInterfaceBody<'a>) -> Node<'a>
fn from(node: &TsInterfaceBody<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsInterfaceDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsInterfaceDecl<'a>> for Node<'a>
sourcefn from(node: &TsInterfaceDecl<'a>) -> Node<'a>
fn from(node: &TsInterfaceDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsIntersectionType<'a>> for Node<'a>
impl<'a> From<&'_ TsIntersectionType<'a>> for Node<'a>
sourcefn from(node: &TsIntersectionType<'a>) -> Node<'a>
fn from(node: &TsIntersectionType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsKeywordType<'a>> for Node<'a>
impl<'a> From<&'_ TsKeywordType<'a>> for Node<'a>
sourcefn from(node: &TsKeywordType<'a>) -> Node<'a>
fn from(node: &TsKeywordType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsMappedType<'a>> for Node<'a>
impl<'a> From<&'_ TsMappedType<'a>> for Node<'a>
sourcefn from(node: &TsMappedType<'a>) -> Node<'a>
fn from(node: &TsMappedType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsMethodSignature<'a>> for Node<'a>
impl<'a> From<&'_ TsMethodSignature<'a>> for Node<'a>
sourcefn from(node: &TsMethodSignature<'a>) -> Node<'a>
fn from(node: &TsMethodSignature<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsModuleBlock<'a>> for Node<'a>
impl<'a> From<&'_ TsModuleBlock<'a>> for Node<'a>
sourcefn from(node: &TsModuleBlock<'a>) -> Node<'a>
fn from(node: &TsModuleBlock<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsModuleDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsModuleDecl<'a>> for Node<'a>
sourcefn from(node: &TsModuleDecl<'a>) -> Node<'a>
fn from(node: &TsModuleDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsModuleName<'a>> for Node<'a>
impl<'a> From<&'_ TsModuleName<'a>> for Node<'a>
sourcefn from(node: &TsModuleName<'a>) -> Node<'a>
fn from(node: &TsModuleName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsModuleRef<'a>> for Node<'a>
impl<'a> From<&'_ TsModuleRef<'a>> for Node<'a>
sourcefn from(node: &TsModuleRef<'a>) -> Node<'a>
fn from(node: &TsModuleRef<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsNamespaceBody<'a>> for Node<'a>
impl<'a> From<&'_ TsNamespaceBody<'a>> for Node<'a>
sourcefn from(node: &TsNamespaceBody<'a>) -> Node<'a>
fn from(node: &TsNamespaceBody<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsNamespaceDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsNamespaceDecl<'a>> for Node<'a>
sourcefn from(node: &TsNamespaceDecl<'a>) -> Node<'a>
fn from(node: &TsNamespaceDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsNamespaceExportDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsNamespaceExportDecl<'a>> for Node<'a>
sourcefn from(node: &TsNamespaceExportDecl<'a>) -> Node<'a>
fn from(node: &TsNamespaceExportDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsNonNullExpr<'a>> for Node<'a>
impl<'a> From<&'_ TsNonNullExpr<'a>> for Node<'a>
sourcefn from(node: &TsNonNullExpr<'a>) -> Node<'a>
fn from(node: &TsNonNullExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsOptionalType<'a>> for Node<'a>
impl<'a> From<&'_ TsOptionalType<'a>> for Node<'a>
sourcefn from(node: &TsOptionalType<'a>) -> Node<'a>
fn from(node: &TsOptionalType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsParamProp<'a>> for Node<'a>
impl<'a> From<&'_ TsParamProp<'a>> for Node<'a>
sourcefn from(node: &TsParamProp<'a>) -> Node<'a>
fn from(node: &TsParamProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsParamPropParam<'a>> for Node<'a>
impl<'a> From<&'_ TsParamPropParam<'a>> for Node<'a>
sourcefn from(node: &TsParamPropParam<'a>) -> Node<'a>
fn from(node: &TsParamPropParam<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsParenthesizedType<'a>> for Node<'a>
impl<'a> From<&'_ TsParenthesizedType<'a>> for Node<'a>
sourcefn from(node: &TsParenthesizedType<'a>) -> Node<'a>
fn from(node: &TsParenthesizedType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsPropertySignature<'a>> for Node<'a>
impl<'a> From<&'_ TsPropertySignature<'a>> for Node<'a>
sourcefn from(node: &TsPropertySignature<'a>) -> Node<'a>
fn from(node: &TsPropertySignature<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsQualifiedName<'a>> for Node<'a>
impl<'a> From<&'_ TsQualifiedName<'a>> for Node<'a>
sourcefn from(node: &TsQualifiedName<'a>) -> Node<'a>
fn from(node: &TsQualifiedName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsRestType<'a>> for Node<'a>
impl<'a> From<&'_ TsRestType<'a>> for Node<'a>
sourcefn from(node: &TsRestType<'a>) -> Node<'a>
fn from(node: &TsRestType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsSetterSignature<'a>> for Node<'a>
impl<'a> From<&'_ TsSetterSignature<'a>> for Node<'a>
sourcefn from(node: &TsSetterSignature<'a>) -> Node<'a>
fn from(node: &TsSetterSignature<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsThisType<'a>> for Node<'a>
impl<'a> From<&'_ TsThisType<'a>> for Node<'a>
sourcefn from(node: &TsThisType<'a>) -> Node<'a>
fn from(node: &TsThisType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsThisTypeOrIdent<'a>> for Node<'a>
impl<'a> From<&'_ TsThisTypeOrIdent<'a>> for Node<'a>
sourcefn from(node: &TsThisTypeOrIdent<'a>) -> Node<'a>
fn from(node: &TsThisTypeOrIdent<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTplLitType<'a>> for Node<'a>
impl<'a> From<&'_ TsTplLitType<'a>> for Node<'a>
sourcefn from(node: &TsTplLitType<'a>) -> Node<'a>
fn from(node: &TsTplLitType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTupleElement<'a>> for Node<'a>
impl<'a> From<&'_ TsTupleElement<'a>> for Node<'a>
sourcefn from(node: &TsTupleElement<'a>) -> Node<'a>
fn from(node: &TsTupleElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTupleType<'a>> for Node<'a>
impl<'a> From<&'_ TsTupleType<'a>> for Node<'a>
sourcefn from(node: &TsTupleType<'a>) -> Node<'a>
fn from(node: &TsTupleType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeAliasDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeAliasDecl<'a>> for Node<'a>
sourcefn from(node: &TsTypeAliasDecl<'a>) -> Node<'a>
fn from(node: &TsTypeAliasDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeAssertion<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeAssertion<'a>> for Node<'a>
sourcefn from(node: &TsTypeAssertion<'a>) -> Node<'a>
fn from(node: &TsTypeAssertion<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeElement<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeElement<'a>> for Node<'a>
sourcefn from(node: &TsTypeElement<'a>) -> Node<'a>
fn from(node: &TsTypeElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeOperator<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeOperator<'a>> for Node<'a>
sourcefn from(node: &TsTypeOperator<'a>) -> Node<'a>
fn from(node: &TsTypeOperator<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeParam<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeParam<'a>> for Node<'a>
sourcefn from(node: &TsTypeParam<'a>) -> Node<'a>
fn from(node: &TsTypeParam<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeParamDecl<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeParamDecl<'a>> for Node<'a>
sourcefn from(node: &TsTypeParamDecl<'a>) -> Node<'a>
fn from(node: &TsTypeParamDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeParamInstantiation<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeParamInstantiation<'a>> for Node<'a>
sourcefn from(node: &TsTypeParamInstantiation<'a>) -> Node<'a>
fn from(node: &TsTypeParamInstantiation<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypePredicate<'a>> for Node<'a>
impl<'a> From<&'_ TsTypePredicate<'a>> for Node<'a>
sourcefn from(node: &TsTypePredicate<'a>) -> Node<'a>
fn from(node: &TsTypePredicate<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeQuery<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeQuery<'a>> for Node<'a>
sourcefn from(node: &TsTypeQuery<'a>) -> Node<'a>
fn from(node: &TsTypeQuery<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsTypeQueryExpr<'a>> for Node<'a>
impl<'a> From<&'_ TsTypeQueryExpr<'a>> for Node<'a>
sourcefn from(node: &TsTypeQueryExpr<'a>) -> Node<'a>
fn from(node: &TsTypeQueryExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsUnionOrIntersectionType<'a>> for Node<'a>
impl<'a> From<&'_ TsUnionOrIntersectionType<'a>> for Node<'a>
sourcefn from(node: &TsUnionOrIntersectionType<'a>) -> Node<'a>
fn from(node: &TsUnionOrIntersectionType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ TsUnionType<'a>> for Node<'a>
impl<'a> From<&'_ TsUnionType<'a>> for Node<'a>
sourcefn from(node: &TsUnionType<'a>) -> Node<'a>
fn from(node: &TsUnionType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ UpdateExpr<'a>> for Node<'a>
impl<'a> From<&'_ UpdateExpr<'a>> for Node<'a>
sourcefn from(node: &UpdateExpr<'a>) -> Node<'a>
fn from(node: &UpdateExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ VarDeclOrExpr<'a>> for Node<'a>
impl<'a> From<&'_ VarDeclOrExpr<'a>> for Node<'a>
sourcefn from(node: &VarDeclOrExpr<'a>) -> Node<'a>
fn from(node: &VarDeclOrExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ VarDeclOrPat<'a>> for Node<'a>
impl<'a> From<&'_ VarDeclOrPat<'a>> for Node<'a>
sourcefn from(node: &VarDeclOrPat<'a>) -> Node<'a>
fn from(node: &VarDeclOrPat<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'_ VarDeclarator<'a>> for Node<'a>
impl<'a> From<&'_ VarDeclarator<'a>> for Node<'a>
sourcefn from(node: &VarDeclarator<'a>) -> Node<'a>
fn from(node: &VarDeclarator<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<BlockStmtOrExpr<'a>> for Node<'a>
impl<'a> From<BlockStmtOrExpr<'a>> for Node<'a>
sourcefn from(node: BlockStmtOrExpr<'a>) -> Node<'a>
fn from(node: BlockStmtOrExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ClassMember<'a>> for Node<'a>
impl<'a> From<ClassMember<'a>> for Node<'a>
sourcefn from(node: ClassMember<'a>) -> Node<'a>
fn from(node: ClassMember<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<DefaultDecl<'a>> for Node<'a>
impl<'a> From<DefaultDecl<'a>> for Node<'a>
sourcefn from(node: DefaultDecl<'a>) -> Node<'a>
fn from(node: DefaultDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ExportSpecifier<'a>> for Node<'a>
impl<'a> From<ExportSpecifier<'a>> for Node<'a>
sourcefn from(node: ExportSpecifier<'a>) -> Node<'a>
fn from(node: ExportSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ImportSpecifier<'a>> for Node<'a>
impl<'a> From<ImportSpecifier<'a>> for Node<'a>
sourcefn from(node: ImportSpecifier<'a>) -> Node<'a>
fn from(node: ImportSpecifier<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<JSXAttrName<'a>> for Node<'a>
impl<'a> From<JSXAttrName<'a>> for Node<'a>
sourcefn from(node: JSXAttrName<'a>) -> Node<'a>
fn from(node: JSXAttrName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<JSXAttrOrSpread<'a>> for Node<'a>
impl<'a> From<JSXAttrOrSpread<'a>> for Node<'a>
sourcefn from(node: JSXAttrOrSpread<'a>) -> Node<'a>
fn from(node: JSXAttrOrSpread<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<JSXAttrValue<'a>> for Node<'a>
impl<'a> From<JSXAttrValue<'a>> for Node<'a>
sourcefn from(node: JSXAttrValue<'a>) -> Node<'a>
fn from(node: JSXAttrValue<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<JSXElementChild<'a>> for Node<'a>
impl<'a> From<JSXElementChild<'a>> for Node<'a>
sourcefn from(node: JSXElementChild<'a>) -> Node<'a>
fn from(node: JSXElementChild<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<JSXElementName<'a>> for Node<'a>
impl<'a> From<JSXElementName<'a>> for Node<'a>
sourcefn from(node: JSXElementName<'a>) -> Node<'a>
fn from(node: JSXElementName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<MemberProp<'a>> for Node<'a>
impl<'a> From<MemberProp<'a>> for Node<'a>
sourcefn from(node: MemberProp<'a>) -> Node<'a>
fn from(node: MemberProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ModuleDecl<'a>> for Node<'a>
impl<'a> From<ModuleDecl<'a>> for Node<'a>
sourcefn from(node: ModuleDecl<'a>) -> Node<'a>
fn from(node: ModuleDecl<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ModuleExportName<'a>> for Node<'a>
impl<'a> From<ModuleExportName<'a>> for Node<'a>
sourcefn from(node: ModuleExportName<'a>) -> Node<'a>
fn from(node: ModuleExportName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ModuleItem<'a>> for Node<'a>
impl<'a> From<ModuleItem<'a>> for Node<'a>
sourcefn from(node: ModuleItem<'a>) -> Node<'a>
fn from(node: ModuleItem<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ObjectPatProp<'a>> for Node<'a>
impl<'a> From<ObjectPatProp<'a>> for Node<'a>
sourcefn from(node: ObjectPatProp<'a>) -> Node<'a>
fn from(node: ObjectPatProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<OptChainBase<'a>> for Node<'a>
impl<'a> From<OptChainBase<'a>> for Node<'a>
sourcefn from(node: OptChainBase<'a>) -> Node<'a>
fn from(node: OptChainBase<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<ParamOrTsParamProp<'a>> for Node<'a>
impl<'a> From<ParamOrTsParamProp<'a>> for Node<'a>
sourcefn from(node: ParamOrTsParamProp<'a>) -> Node<'a>
fn from(node: ParamOrTsParamProp<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<PropOrSpread<'a>> for Node<'a>
impl<'a> From<PropOrSpread<'a>> for Node<'a>
sourcefn from(node: PropOrSpread<'a>) -> Node<'a>
fn from(node: PropOrSpread<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsEntityName<'a>> for Node<'a>
impl<'a> From<TsEntityName<'a>> for Node<'a>
sourcefn from(node: TsEntityName<'a>) -> Node<'a>
fn from(node: TsEntityName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsEnumMemberId<'a>> for Node<'a>
impl<'a> From<TsEnumMemberId<'a>> for Node<'a>
sourcefn from(node: TsEnumMemberId<'a>) -> Node<'a>
fn from(node: TsEnumMemberId<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsFnOrConstructorType<'a>> for Node<'a>
impl<'a> From<TsFnOrConstructorType<'a>> for Node<'a>
sourcefn from(node: TsFnOrConstructorType<'a>) -> Node<'a>
fn from(node: TsFnOrConstructorType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsModuleName<'a>> for Node<'a>
impl<'a> From<TsModuleName<'a>> for Node<'a>
sourcefn from(node: TsModuleName<'a>) -> Node<'a>
fn from(node: TsModuleName<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsModuleRef<'a>> for Node<'a>
impl<'a> From<TsModuleRef<'a>> for Node<'a>
sourcefn from(node: TsModuleRef<'a>) -> Node<'a>
fn from(node: TsModuleRef<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsNamespaceBody<'a>> for Node<'a>
impl<'a> From<TsNamespaceBody<'a>> for Node<'a>
sourcefn from(node: TsNamespaceBody<'a>) -> Node<'a>
fn from(node: TsNamespaceBody<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsParamPropParam<'a>> for Node<'a>
impl<'a> From<TsParamPropParam<'a>> for Node<'a>
sourcefn from(node: TsParamPropParam<'a>) -> Node<'a>
fn from(node: TsParamPropParam<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsThisTypeOrIdent<'a>> for Node<'a>
impl<'a> From<TsThisTypeOrIdent<'a>> for Node<'a>
sourcefn from(node: TsThisTypeOrIdent<'a>) -> Node<'a>
fn from(node: TsThisTypeOrIdent<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsTypeElement<'a>> for Node<'a>
impl<'a> From<TsTypeElement<'a>> for Node<'a>
sourcefn from(node: TsTypeElement<'a>) -> Node<'a>
fn from(node: TsTypeElement<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsTypeQueryExpr<'a>> for Node<'a>
impl<'a> From<TsTypeQueryExpr<'a>> for Node<'a>
sourcefn from(node: TsTypeQueryExpr<'a>) -> Node<'a>
fn from(node: TsTypeQueryExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<TsUnionOrIntersectionType<'a>> for Node<'a>
impl<'a> From<TsUnionOrIntersectionType<'a>> for Node<'a>
sourcefn from(node: TsUnionOrIntersectionType<'a>) -> Node<'a>
fn from(node: TsUnionOrIntersectionType<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<VarDeclOrExpr<'a>> for Node<'a>
impl<'a> From<VarDeclOrExpr<'a>> for Node<'a>
sourcefn from(node: VarDeclOrExpr<'a>) -> Node<'a>
fn from(node: VarDeclOrExpr<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> From<VarDeclOrPat<'a>> for Node<'a>
impl<'a> From<VarDeclOrPat<'a>> for Node<'a>
sourcefn from(node: VarDeclOrPat<'a>) -> Node<'a>
fn from(node: VarDeclOrPat<'a>) -> Node<'a>
Converts to this type from the input type.
sourceimpl<'a> NodeTrait<'a> for Node<'a>
impl<'a> NodeTrait<'a> for Node<'a>
fn parent(&self) -> Option<Node<'a>>
fn children(&self) -> Vec<Node<'a>>
fn as_node(&self) -> Node<'a>
fn kind(&self) -> NodeKind
fn ancestors(&self) -> AncestorIterator<'a>ⓘNotable traits for AncestorIterator<'a>impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
fn start_line(&self) -> usize
fn end_line(&self) -> usize
fn start_column(&self) -> usize
fn end_column(&self) -> usize
fn width(&self) -> usize
fn child_index(&self) -> usize
fn previous_sibling(&self) -> Option<Node<'a>>
sourcefn previous_siblings(&self) -> Vec<Node<'a>>
fn previous_siblings(&self) -> Vec<Node<'a>>
Gets the previous siblings in the order they appear in the file.
sourcefn next_sibling(&self) -> Option<Node<'a>>
fn next_sibling(&self) -> Option<Node<'a>>
Gets the next siblings in the order they appear in the file.
fn next_siblings(&self) -> Vec<Node<'a>>
fn tokens(&self) -> &'a [TokenAndSpan]
fn children_with_tokens(&self) -> Vec<NodeOrToken<'a>>
fn children_with_tokens_fast(
&self,
program: &dyn RootNode<'a>
) -> Vec<NodeOrToken<'a>>
fn leading_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
fn trailing_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
sourcefn module(&self) -> &Module<'a>
fn module(&self) -> &Module<'a>
Gets the root node if the view was created from a Module; otherwise panics.
sourcefn script(&self) -> &Script<'a>
fn script(&self) -> &Script<'a>
Gets the root node if the view was created from a Script; otherwise panics.
fn text(&self) -> &'a str
fn previous_token(&self) -> Option<&'a TokenAndSpan>
fn next_token(&self) -> Option<&'a TokenAndSpan>
sourcefn previous_tokens(&self) -> &'a [TokenAndSpan]
fn previous_tokens(&self) -> &'a [TokenAndSpan]
Gets the previous tokens in the order they appear in the file.
sourcefn next_tokens(&self) -> &'a [TokenAndSpan]
fn next_tokens(&self) -> &'a [TokenAndSpan]
Gets the next tokens in the order they appear in the file.
impl<'a> Copy for Node<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> !Send for Node<'a>
impl<'a> !Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more