NodeRef

Enum NodeRef 

Source
pub enum NodeRef<'ast> {
Show 236 variants Accessibility(&'ast Accessibility), ArrayLit(&'ast ArrayLit), ArrayPat(&'ast ArrayPat), ArrowExpr(&'ast ArrowExpr), AssignExpr(&'ast AssignExpr), AssignOp(&'ast AssignOp), AssignPat(&'ast AssignPat), AssignPatProp(&'ast AssignPatProp), AssignProp(&'ast AssignProp), AssignTarget(&'ast AssignTarget), AssignTargetPat(&'ast AssignTargetPat), AutoAccessor(&'ast AutoAccessor), AwaitExpr(&'ast AwaitExpr), BigInt(&'ast BigInt), BinExpr(&'ast BinExpr), BinaryOp(&'ast BinaryOp), BindingIdent(&'ast BindingIdent), BlockStmt(&'ast BlockStmt), BlockStmtOrExpr(&'ast BlockStmtOrExpr), Bool(&'ast Bool), BreakStmt(&'ast BreakStmt), CallExpr(&'ast CallExpr), Callee(&'ast Callee), CatchClause(&'ast CatchClause), Class(&'ast Class), ClassDecl(&'ast ClassDecl), ClassExpr(&'ast ClassExpr), ClassMember(&'ast ClassMember), ClassMethod(&'ast ClassMethod), ClassProp(&'ast ClassProp), ComputedPropName(&'ast ComputedPropName), CondExpr(&'ast CondExpr), Constructor(&'ast Constructor), ContinueStmt(&'ast ContinueStmt), DebuggerStmt(&'ast DebuggerStmt), Decl(&'ast Decl), Decorator(&'ast Decorator), DefaultDecl(&'ast DefaultDecl), DoWhileStmt(&'ast DoWhileStmt), EmptyStmt(&'ast EmptyStmt), ExportAll(&'ast ExportAll), ExportDecl(&'ast ExportDecl), ExportDefaultDecl(&'ast ExportDefaultDecl), ExportDefaultExpr(&'ast ExportDefaultExpr), ExportDefaultSpecifier(&'ast ExportDefaultSpecifier), ExportNamedSpecifier(&'ast ExportNamedSpecifier), ExportNamespaceSpecifier(&'ast ExportNamespaceSpecifier), ExportSpecifier(&'ast ExportSpecifier), Expr(&'ast Expr), ExprOrSpread(&'ast ExprOrSpread), ExprStmt(&'ast ExprStmt), FnDecl(&'ast FnDecl), FnExpr(&'ast FnExpr), ForHead(&'ast ForHead), ForInStmt(&'ast ForInStmt), ForOfStmt(&'ast ForOfStmt), ForStmt(&'ast ForStmt), Function(&'ast Function), GetterProp(&'ast GetterProp), Ident(&'ast Ident), IdentName(&'ast IdentName), IfStmt(&'ast IfStmt), Import(&'ast Import), ImportDecl(&'ast ImportDecl), ImportDefaultSpecifier(&'ast ImportDefaultSpecifier), ImportNamedSpecifier(&'ast ImportNamedSpecifier), ImportPhase(&'ast ImportPhase), ImportSpecifier(&'ast ImportSpecifier), ImportStarAsSpecifier(&'ast ImportStarAsSpecifier), ImportWith(&'ast ImportWith), ImportWithItem(&'ast ImportWithItem), Invalid(&'ast Invalid), JSXAttr(&'ast JSXAttr), JSXAttrName(&'ast JSXAttrName), JSXAttrOrSpread(&'ast JSXAttrOrSpread), JSXAttrValue(&'ast JSXAttrValue), JSXClosingElement(&'ast JSXClosingElement), JSXClosingFragment(&'ast JSXClosingFragment), JSXElement(&'ast JSXElement), JSXElementChild(&'ast JSXElementChild), JSXElementName(&'ast JSXElementName), JSXEmptyExpr(&'ast JSXEmptyExpr), JSXExpr(&'ast JSXExpr), JSXExprContainer(&'ast JSXExprContainer), JSXFragment(&'ast JSXFragment), JSXMemberExpr(&'ast JSXMemberExpr), JSXNamespacedName(&'ast JSXNamespacedName), JSXObject(&'ast JSXObject), JSXOpeningElement(&'ast JSXOpeningElement), JSXOpeningFragment(&'ast JSXOpeningFragment), JSXSpreadChild(&'ast JSXSpreadChild), JSXText(&'ast JSXText), Key(&'ast Key), KeyValuePatProp(&'ast KeyValuePatProp), KeyValueProp(&'ast KeyValueProp), LabeledStmt(&'ast LabeledStmt), Lit(&'ast Lit), MemberExpr(&'ast MemberExpr), MemberProp(&'ast MemberProp), MetaPropExpr(&'ast MetaPropExpr), MetaPropKind(&'ast MetaPropKind), MethodKind(&'ast MethodKind), MethodProp(&'ast MethodProp), Module(&'ast Module), ModuleDecl(&'ast ModuleDecl), ModuleExportName(&'ast ModuleExportName), ModuleItem(&'ast ModuleItem), NamedExport(&'ast NamedExport), NewExpr(&'ast NewExpr), Null(&'ast Null), Number(&'ast Number), ObjectLit(&'ast ObjectLit), ObjectPat(&'ast ObjectPat), ObjectPatProp(&'ast ObjectPatProp), OptCall(&'ast OptCall), OptChainBase(&'ast OptChainBase), OptChainExpr(&'ast OptChainExpr), Param(&'ast Param), ParamOrTsParamProp(&'ast ParamOrTsParamProp), ParenExpr(&'ast ParenExpr), Pat(&'ast Pat), PrivateMethod(&'ast PrivateMethod), PrivateName(&'ast PrivateName), PrivateProp(&'ast PrivateProp), Program(&'ast Program), Prop(&'ast Prop), PropName(&'ast PropName), PropOrSpread(&'ast PropOrSpread), Regex(&'ast Regex), RestPat(&'ast RestPat), ReturnStmt(&'ast ReturnStmt), Script(&'ast Script), SeqExpr(&'ast SeqExpr), SetterProp(&'ast SetterProp), SimpleAssignTarget(&'ast SimpleAssignTarget), SpreadElement(&'ast SpreadElement), StaticBlock(&'ast StaticBlock), Stmt(&'ast Stmt), Str(&'ast Str), Super(&'ast Super), SuperProp(&'ast SuperProp), SuperPropExpr(&'ast SuperPropExpr), SwitchCase(&'ast SwitchCase), SwitchStmt(&'ast SwitchStmt), TaggedTpl(&'ast TaggedTpl), ThisExpr(&'ast ThisExpr), ThrowStmt(&'ast ThrowStmt), Tpl(&'ast Tpl), TplElement(&'ast TplElement), TruePlusMinus(&'ast TruePlusMinus), TryStmt(&'ast TryStmt), TsArrayType(&'ast TsArrayType), TsAsExpr(&'ast TsAsExpr), TsCallSignatureDecl(&'ast TsCallSignatureDecl), TsConditionalType(&'ast TsConditionalType), TsConstAssertion(&'ast TsConstAssertion), TsConstructSignatureDecl(&'ast TsConstructSignatureDecl), TsConstructorType(&'ast TsConstructorType), TsEntityName(&'ast TsEntityName), TsEnumDecl(&'ast TsEnumDecl), TsEnumMember(&'ast TsEnumMember), TsEnumMemberId(&'ast TsEnumMemberId), TsExportAssignment(&'ast TsExportAssignment), TsExprWithTypeArgs(&'ast TsExprWithTypeArgs), TsExternalModuleRef(&'ast TsExternalModuleRef), TsFnOrConstructorType(&'ast TsFnOrConstructorType), TsFnParam(&'ast TsFnParam), TsFnType(&'ast TsFnType), TsGetterSignature(&'ast TsGetterSignature), TsImportCallOptions(&'ast TsImportCallOptions), TsImportEqualsDecl(&'ast TsImportEqualsDecl), TsImportType(&'ast TsImportType), TsIndexSignature(&'ast TsIndexSignature), TsIndexedAccessType(&'ast TsIndexedAccessType), TsInferType(&'ast TsInferType), TsInstantiation(&'ast TsInstantiation), TsInterfaceBody(&'ast TsInterfaceBody), TsInterfaceDecl(&'ast TsInterfaceDecl), TsIntersectionType(&'ast TsIntersectionType), TsKeywordType(&'ast TsKeywordType), TsKeywordTypeKind(&'ast TsKeywordTypeKind), TsLit(&'ast TsLit), TsLitType(&'ast TsLitType), TsMappedType(&'ast TsMappedType), TsMethodSignature(&'ast TsMethodSignature), TsModuleBlock(&'ast TsModuleBlock), TsModuleDecl(&'ast TsModuleDecl), TsModuleName(&'ast TsModuleName), TsModuleRef(&'ast TsModuleRef), TsNamespaceBody(&'ast TsNamespaceBody), TsNamespaceDecl(&'ast TsNamespaceDecl), TsNamespaceExportDecl(&'ast TsNamespaceExportDecl), TsNonNullExpr(&'ast TsNonNullExpr), TsOptionalType(&'ast TsOptionalType), TsParamProp(&'ast TsParamProp), TsParamPropParam(&'ast TsParamPropParam), TsParenthesizedType(&'ast TsParenthesizedType), TsPropertySignature(&'ast TsPropertySignature), TsQualifiedName(&'ast TsQualifiedName), TsRestType(&'ast TsRestType), TsSatisfiesExpr(&'ast TsSatisfiesExpr), TsSetterSignature(&'ast TsSetterSignature), TsThisType(&'ast TsThisType), TsThisTypeOrIdent(&'ast TsThisTypeOrIdent), TsTplLitType(&'ast TsTplLitType), TsTupleElement(&'ast TsTupleElement), TsTupleType(&'ast TsTupleType), TsType(&'ast TsType), TsTypeAliasDecl(&'ast TsTypeAliasDecl), TsTypeAnn(&'ast TsTypeAnn), TsTypeAssertion(&'ast TsTypeAssertion), TsTypeElement(&'ast TsTypeElement), TsTypeLit(&'ast TsTypeLit), TsTypeOperator(&'ast TsTypeOperator), TsTypeOperatorOp(&'ast TsTypeOperatorOp), TsTypeParam(&'ast TsTypeParam), TsTypeParamDecl(&'ast TsTypeParamDecl), TsTypeParamInstantiation(&'ast TsTypeParamInstantiation), TsTypePredicate(&'ast TsTypePredicate), TsTypeQuery(&'ast TsTypeQuery), TsTypeQueryExpr(&'ast TsTypeQueryExpr), TsTypeRef(&'ast TsTypeRef), TsUnionOrIntersectionType(&'ast TsUnionOrIntersectionType), TsUnionType(&'ast TsUnionType), UnaryExpr(&'ast UnaryExpr), UnaryOp(&'ast UnaryOp), UpdateExpr(&'ast UpdateExpr), UpdateOp(&'ast UpdateOp), UsingDecl(&'ast UsingDecl), VarDecl(&'ast VarDecl), VarDeclKind(&'ast VarDeclKind), VarDeclOrExpr(&'ast VarDeclOrExpr), VarDeclarator(&'ast VarDeclarator), WhileStmt(&'ast WhileStmt), WithStmt(&'ast WithStmt), YieldExpr(&'ast YieldExpr),
}
Available on crate features __ecma and __visit only.

Variants§

§

Accessibility(&'ast Accessibility)

§

ArrayLit(&'ast ArrayLit)

§

ArrayPat(&'ast ArrayPat)

§

ArrowExpr(&'ast ArrowExpr)

§

AssignExpr(&'ast AssignExpr)

§

AssignOp(&'ast AssignOp)

§

AssignPat(&'ast AssignPat)

§

AssignPatProp(&'ast AssignPatProp)

§

AssignProp(&'ast AssignProp)

§

AssignTarget(&'ast AssignTarget)

§

AssignTargetPat(&'ast AssignTargetPat)

§

AutoAccessor(&'ast AutoAccessor)

§

AwaitExpr(&'ast AwaitExpr)

§

BigInt(&'ast BigInt)

§

BinExpr(&'ast BinExpr)

§

BinaryOp(&'ast BinaryOp)

§

BindingIdent(&'ast BindingIdent)

§

BlockStmt(&'ast BlockStmt)

§

BlockStmtOrExpr(&'ast BlockStmtOrExpr)

§

Bool(&'ast Bool)

§

BreakStmt(&'ast BreakStmt)

§

CallExpr(&'ast CallExpr)

§

Callee(&'ast Callee)

§

CatchClause(&'ast CatchClause)

§

Class(&'ast Class)

§

ClassDecl(&'ast ClassDecl)

§

ClassExpr(&'ast ClassExpr)

§

ClassMember(&'ast ClassMember)

§

ClassMethod(&'ast ClassMethod)

§

ClassProp(&'ast ClassProp)

§

ComputedPropName(&'ast ComputedPropName)

§

CondExpr(&'ast CondExpr)

§

Constructor(&'ast Constructor)

§

ContinueStmt(&'ast ContinueStmt)

§

DebuggerStmt(&'ast DebuggerStmt)

§

Decl(&'ast Decl)

§

Decorator(&'ast Decorator)

§

DefaultDecl(&'ast DefaultDecl)

§

DoWhileStmt(&'ast DoWhileStmt)

§

EmptyStmt(&'ast EmptyStmt)

§

ExportAll(&'ast ExportAll)

§

ExportDecl(&'ast ExportDecl)

§

ExportDefaultDecl(&'ast ExportDefaultDecl)

§

ExportDefaultExpr(&'ast ExportDefaultExpr)

§

ExportDefaultSpecifier(&'ast ExportDefaultSpecifier)

§

ExportNamedSpecifier(&'ast ExportNamedSpecifier)

§

ExportNamespaceSpecifier(&'ast ExportNamespaceSpecifier)

§

ExportSpecifier(&'ast ExportSpecifier)

§

Expr(&'ast Expr)

§

ExprOrSpread(&'ast ExprOrSpread)

§

ExprStmt(&'ast ExprStmt)

§

FnDecl(&'ast FnDecl)

§

FnExpr(&'ast FnExpr)

§

ForHead(&'ast ForHead)

§

ForInStmt(&'ast ForInStmt)

§

ForOfStmt(&'ast ForOfStmt)

§

ForStmt(&'ast ForStmt)

§

Function(&'ast Function)

§

GetterProp(&'ast GetterProp)

§

Ident(&'ast Ident)

§

IdentName(&'ast IdentName)

§

IfStmt(&'ast IfStmt)

§

Import(&'ast Import)

§

ImportDecl(&'ast ImportDecl)

§

ImportDefaultSpecifier(&'ast ImportDefaultSpecifier)

§

ImportNamedSpecifier(&'ast ImportNamedSpecifier)

§

ImportPhase(&'ast ImportPhase)

§

ImportSpecifier(&'ast ImportSpecifier)

§

ImportStarAsSpecifier(&'ast ImportStarAsSpecifier)

§

ImportWith(&'ast ImportWith)

§

ImportWithItem(&'ast ImportWithItem)

§

Invalid(&'ast Invalid)

§

JSXAttr(&'ast JSXAttr)

§

JSXAttrName(&'ast JSXAttrName)

§

JSXAttrOrSpread(&'ast JSXAttrOrSpread)

§

JSXAttrValue(&'ast JSXAttrValue)

§

JSXClosingElement(&'ast JSXClosingElement)

§

JSXClosingFragment(&'ast JSXClosingFragment)

§

JSXElement(&'ast JSXElement)

§

JSXElementChild(&'ast JSXElementChild)

§

JSXElementName(&'ast JSXElementName)

§

JSXEmptyExpr(&'ast JSXEmptyExpr)

§

JSXExpr(&'ast JSXExpr)

§

JSXExprContainer(&'ast JSXExprContainer)

§

JSXFragment(&'ast JSXFragment)

§

JSXMemberExpr(&'ast JSXMemberExpr)

§

JSXNamespacedName(&'ast JSXNamespacedName)

§

JSXObject(&'ast JSXObject)

§

JSXOpeningElement(&'ast JSXOpeningElement)

§

JSXOpeningFragment(&'ast JSXOpeningFragment)

§

JSXSpreadChild(&'ast JSXSpreadChild)

§

JSXText(&'ast JSXText)

§

Key(&'ast Key)

§

KeyValuePatProp(&'ast KeyValuePatProp)

§

KeyValueProp(&'ast KeyValueProp)

§

LabeledStmt(&'ast LabeledStmt)

§

Lit(&'ast Lit)

§

MemberExpr(&'ast MemberExpr)

§

MemberProp(&'ast MemberProp)

§

MetaPropExpr(&'ast MetaPropExpr)

§

MetaPropKind(&'ast MetaPropKind)

§

MethodKind(&'ast MethodKind)

§

MethodProp(&'ast MethodProp)

§

Module(&'ast Module)

§

ModuleDecl(&'ast ModuleDecl)

§

ModuleExportName(&'ast ModuleExportName)

§

ModuleItem(&'ast ModuleItem)

§

NamedExport(&'ast NamedExport)

§

NewExpr(&'ast NewExpr)

§

Null(&'ast Null)

§

Number(&'ast Number)

§

ObjectLit(&'ast ObjectLit)

§

ObjectPat(&'ast ObjectPat)

§

ObjectPatProp(&'ast ObjectPatProp)

§

OptCall(&'ast OptCall)

§

OptChainBase(&'ast OptChainBase)

§

OptChainExpr(&'ast OptChainExpr)

§

Param(&'ast Param)

§

ParamOrTsParamProp(&'ast ParamOrTsParamProp)

§

ParenExpr(&'ast ParenExpr)

§

Pat(&'ast Pat)

§

PrivateMethod(&'ast PrivateMethod)

§

PrivateName(&'ast PrivateName)

§

PrivateProp(&'ast PrivateProp)

§

Program(&'ast Program)

§

Prop(&'ast Prop)

§

PropName(&'ast PropName)

§

PropOrSpread(&'ast PropOrSpread)

§

Regex(&'ast Regex)

§

RestPat(&'ast RestPat)

§

ReturnStmt(&'ast ReturnStmt)

§

Script(&'ast Script)

§

SeqExpr(&'ast SeqExpr)

§

SetterProp(&'ast SetterProp)

§

SimpleAssignTarget(&'ast SimpleAssignTarget)

§

SpreadElement(&'ast SpreadElement)

§

StaticBlock(&'ast StaticBlock)

§

Stmt(&'ast Stmt)

§

Str(&'ast Str)

§

Super(&'ast Super)

§

SuperProp(&'ast SuperProp)

§

SuperPropExpr(&'ast SuperPropExpr)

§

SwitchCase(&'ast SwitchCase)

§

SwitchStmt(&'ast SwitchStmt)

§

TaggedTpl(&'ast TaggedTpl)

§

ThisExpr(&'ast ThisExpr)

§

ThrowStmt(&'ast ThrowStmt)

§

Tpl(&'ast Tpl)

§

TplElement(&'ast TplElement)

§

TruePlusMinus(&'ast TruePlusMinus)

§

TryStmt(&'ast TryStmt)

§

TsArrayType(&'ast TsArrayType)

§

TsAsExpr(&'ast TsAsExpr)

§

TsCallSignatureDecl(&'ast TsCallSignatureDecl)

§

TsConditionalType(&'ast TsConditionalType)

§

TsConstAssertion(&'ast TsConstAssertion)

§

TsConstructSignatureDecl(&'ast TsConstructSignatureDecl)

§

TsConstructorType(&'ast TsConstructorType)

§

TsEntityName(&'ast TsEntityName)

§

TsEnumDecl(&'ast TsEnumDecl)

§

TsEnumMember(&'ast TsEnumMember)

§

TsEnumMemberId(&'ast TsEnumMemberId)

§

TsExportAssignment(&'ast TsExportAssignment)

§

TsExprWithTypeArgs(&'ast TsExprWithTypeArgs)

§

TsExternalModuleRef(&'ast TsExternalModuleRef)

§

TsFnOrConstructorType(&'ast TsFnOrConstructorType)

§

TsFnParam(&'ast TsFnParam)

§

TsFnType(&'ast TsFnType)

§

TsGetterSignature(&'ast TsGetterSignature)

§

TsImportCallOptions(&'ast TsImportCallOptions)

§

TsImportEqualsDecl(&'ast TsImportEqualsDecl)

§

TsImportType(&'ast TsImportType)

§

TsIndexSignature(&'ast TsIndexSignature)

§

TsIndexedAccessType(&'ast TsIndexedAccessType)

§

TsInferType(&'ast TsInferType)

§

TsInstantiation(&'ast TsInstantiation)

§

TsInterfaceBody(&'ast TsInterfaceBody)

§

TsInterfaceDecl(&'ast TsInterfaceDecl)

§

TsIntersectionType(&'ast TsIntersectionType)

§

TsKeywordType(&'ast TsKeywordType)

§

TsKeywordTypeKind(&'ast TsKeywordTypeKind)

§

TsLit(&'ast TsLit)

§

TsLitType(&'ast TsLitType)

§

TsMappedType(&'ast TsMappedType)

§

TsMethodSignature(&'ast TsMethodSignature)

§

TsModuleBlock(&'ast TsModuleBlock)

§

TsModuleDecl(&'ast TsModuleDecl)

§

TsModuleName(&'ast TsModuleName)

§

TsModuleRef(&'ast TsModuleRef)

§

TsNamespaceBody(&'ast TsNamespaceBody)

§

TsNamespaceDecl(&'ast TsNamespaceDecl)

§

TsNamespaceExportDecl(&'ast TsNamespaceExportDecl)

§

TsNonNullExpr(&'ast TsNonNullExpr)

§

TsOptionalType(&'ast TsOptionalType)

§

TsParamProp(&'ast TsParamProp)

§

TsParamPropParam(&'ast TsParamPropParam)

§

TsParenthesizedType(&'ast TsParenthesizedType)

§

TsPropertySignature(&'ast TsPropertySignature)

§

TsQualifiedName(&'ast TsQualifiedName)

§

TsRestType(&'ast TsRestType)

§

TsSatisfiesExpr(&'ast TsSatisfiesExpr)

§

TsSetterSignature(&'ast TsSetterSignature)

§

TsThisType(&'ast TsThisType)

§

TsThisTypeOrIdent(&'ast TsThisTypeOrIdent)

§

TsTplLitType(&'ast TsTplLitType)

§

TsTupleElement(&'ast TsTupleElement)

§

TsTupleType(&'ast TsTupleType)

§

TsType(&'ast TsType)

§

TsTypeAliasDecl(&'ast TsTypeAliasDecl)

§

TsTypeAnn(&'ast TsTypeAnn)

§

TsTypeAssertion(&'ast TsTypeAssertion)

§

TsTypeElement(&'ast TsTypeElement)

§

TsTypeLit(&'ast TsTypeLit)

§

TsTypeOperator(&'ast TsTypeOperator)

§

TsTypeOperatorOp(&'ast TsTypeOperatorOp)

§

TsTypeParam(&'ast TsTypeParam)

§

TsTypeParamDecl(&'ast TsTypeParamDecl)

§

TsTypeParamInstantiation(&'ast TsTypeParamInstantiation)

§

TsTypePredicate(&'ast TsTypePredicate)

§

TsTypeQuery(&'ast TsTypeQuery)

§

TsTypeQueryExpr(&'ast TsTypeQueryExpr)

§

TsTypeRef(&'ast TsTypeRef)

§

TsUnionOrIntersectionType(&'ast TsUnionOrIntersectionType)

§

TsUnionType(&'ast TsUnionType)

§

UnaryExpr(&'ast UnaryExpr)

§

UnaryOp(&'ast UnaryOp)

§

UpdateExpr(&'ast UpdateExpr)

§

UpdateOp(&'ast UpdateOp)

§

UsingDecl(&'ast UsingDecl)

§

VarDecl(&'ast VarDecl)

§

VarDeclKind(&'ast VarDeclKind)

§

VarDeclOrExpr(&'ast VarDeclOrExpr)

§

VarDeclarator(&'ast VarDeclarator)

§

WhileStmt(&'ast WhileStmt)

§

WithStmt(&'ast WithStmt)

§

YieldExpr(&'ast YieldExpr)

Implementations§

Source§

impl<'ast> NodeRef<'ast>

Source

pub fn experimental_raw_children<'a>( &'a self, ) -> Box<dyn Iterator<Item = NodeRef<'ast>> + 'a>

This is not a part of semver-stable API. It is experimental and subject to change.

Source§

impl<'ast> NodeRef<'ast>

Source

pub fn experimental_traverse( &'ast self, ) -> Box<dyn Iterator<Item = NodeRef<'ast>> + 'ast>

Visit all nodes in self in preorder.

This is not a part of semver-stable API. It is experimental and subject to change.

Trait Implementations§

Source§

impl<'ast> Clone for NodeRef<'ast>

Source§

fn clone(&self) -> NodeRef<'ast>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'ast> Debug for NodeRef<'ast>

Source§

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

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

impl<'ast> From<&'ast Accessibility> for NodeRef<'ast>

Source§

fn from(node: &'ast Accessibility) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ArrayLit> for NodeRef<'ast>

Source§

fn from(node: &'ast ArrayLit) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ArrayPat> for NodeRef<'ast>

Source§

fn from(node: &'ast ArrayPat) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ArrowExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast ArrowExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AssignExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast AssignExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AssignOp> for NodeRef<'ast>

Source§

fn from(node: &'ast AssignOp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AssignPat> for NodeRef<'ast>

Source§

fn from(node: &'ast AssignPat) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AssignPatProp> for NodeRef<'ast>

Source§

fn from(node: &'ast AssignPatProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AssignProp> for NodeRef<'ast>

Source§

fn from(node: &'ast AssignProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AssignTarget> for NodeRef<'ast>

Source§

fn from(node: &'ast AssignTarget) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AssignTargetPat> for NodeRef<'ast>

Source§

fn from(node: &'ast AssignTargetPat) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AutoAccessor> for NodeRef<'ast>

Source§

fn from(node: &'ast AutoAccessor) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast AwaitExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast AwaitExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast BigInt> for NodeRef<'ast>

Source§

fn from(node: &'ast BigInt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast BinExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast BinExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast BinaryOp> for NodeRef<'ast>

Source§

fn from(node: &'ast BinaryOp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast BindingIdent> for NodeRef<'ast>

Source§

fn from(node: &'ast BindingIdent) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast BlockStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast BlockStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast BlockStmtOrExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast BlockStmtOrExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Bool> for NodeRef<'ast>

Source§

fn from(node: &'ast Bool) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast BreakStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast BreakStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast CallExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast CallExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Callee> for NodeRef<'ast>

Source§

fn from(node: &'ast Callee) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast CatchClause> for NodeRef<'ast>

Source§

fn from(node: &'ast CatchClause) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Class> for NodeRef<'ast>

Source§

fn from(node: &'ast Class) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ClassDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast ClassDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ClassExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast ClassExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ClassMember> for NodeRef<'ast>

Source§

fn from(node: &'ast ClassMember) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ClassMethod> for NodeRef<'ast>

Source§

fn from(node: &'ast ClassMethod) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ClassProp> for NodeRef<'ast>

Source§

fn from(node: &'ast ClassProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ComputedPropName> for NodeRef<'ast>

Source§

fn from(node: &'ast ComputedPropName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast CondExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast CondExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Constructor> for NodeRef<'ast>

Source§

fn from(node: &'ast Constructor) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ContinueStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast ContinueStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast DebuggerStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast DebuggerStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Decl> for NodeRef<'ast>

Source§

fn from(node: &'ast Decl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Decorator> for NodeRef<'ast>

Source§

fn from(node: &'ast Decorator) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast DefaultDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast DefaultDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast DoWhileStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast DoWhileStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast EmptyStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast EmptyStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportAll> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportAll) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportDefaultDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportDefaultDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportDefaultExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportDefaultExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportDefaultSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportDefaultSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportNamedSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportNamedSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportNamespaceSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportNamespaceSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExportSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ExportSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Expr> for NodeRef<'ast>

Source§

fn from(node: &'ast Expr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExprOrSpread> for NodeRef<'ast>

Source§

fn from(node: &'ast ExprOrSpread) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ExprStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast ExprStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast FnDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast FnDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast FnExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast FnExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ForHead> for NodeRef<'ast>

Source§

fn from(node: &'ast ForHead) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ForInStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast ForInStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ForOfStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast ForOfStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ForStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast ForStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Function> for NodeRef<'ast>

Source§

fn from(node: &'ast Function) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast GetterProp> for NodeRef<'ast>

Source§

fn from(node: &'ast GetterProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Ident> for NodeRef<'ast>

Source§

fn from(node: &'ast Ident) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast IdentName> for NodeRef<'ast>

Source§

fn from(node: &'ast IdentName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast IfStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast IfStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Import> for NodeRef<'ast>

Source§

fn from(node: &'ast Import) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportDefaultSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportDefaultSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportNamedSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportNamedSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportPhase> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportPhase) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportStarAsSpecifier> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportStarAsSpecifier) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportWith> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportWith) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ImportWithItem> for NodeRef<'ast>

Source§

fn from(node: &'ast ImportWithItem) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Invalid> for NodeRef<'ast>

Source§

fn from(node: &'ast Invalid) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXAttr> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXAttr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXAttrName> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXAttrName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXAttrOrSpread> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXAttrOrSpread) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXAttrValue> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXAttrValue) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXClosingElement> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXClosingElement) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXClosingFragment> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXClosingFragment) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXElement> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXElement) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXElementChild> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXElementChild) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXElementName> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXElementName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXEmptyExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXEmptyExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXExprContainer> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXExprContainer) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXFragment> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXFragment) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXMemberExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXMemberExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXNamespacedName> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXNamespacedName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXObject> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXObject) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXOpeningElement> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXOpeningElement) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXOpeningFragment> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXOpeningFragment) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXSpreadChild> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXSpreadChild) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast JSXText> for NodeRef<'ast>

Source§

fn from(node: &'ast JSXText) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Key> for NodeRef<'ast>

Source§

fn from(node: &'ast Key) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast KeyValuePatProp> for NodeRef<'ast>

Source§

fn from(node: &'ast KeyValuePatProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast KeyValueProp> for NodeRef<'ast>

Source§

fn from(node: &'ast KeyValueProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast LabeledStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast LabeledStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Lit> for NodeRef<'ast>

Source§

fn from(node: &'ast Lit) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast MemberExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast MemberExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast MemberProp> for NodeRef<'ast>

Source§

fn from(node: &'ast MemberProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast MetaPropExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast MetaPropExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast MetaPropKind> for NodeRef<'ast>

Source§

fn from(node: &'ast MetaPropKind) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast MethodKind> for NodeRef<'ast>

Source§

fn from(node: &'ast MethodKind) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast MethodProp> for NodeRef<'ast>

Source§

fn from(node: &'ast MethodProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Module> for NodeRef<'ast>

Source§

fn from(node: &'ast Module) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ModuleDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast ModuleDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ModuleExportName> for NodeRef<'ast>

Source§

fn from(node: &'ast ModuleExportName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ModuleItem> for NodeRef<'ast>

Source§

fn from(node: &'ast ModuleItem) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast NamedExport> for NodeRef<'ast>

Source§

fn from(node: &'ast NamedExport) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast NewExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast NewExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Null> for NodeRef<'ast>

Source§

fn from(node: &'ast Null) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Number> for NodeRef<'ast>

Source§

fn from(node: &'ast Number) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ObjectLit> for NodeRef<'ast>

Source§

fn from(node: &'ast ObjectLit) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ObjectPat> for NodeRef<'ast>

Source§

fn from(node: &'ast ObjectPat) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ObjectPatProp> for NodeRef<'ast>

Source§

fn from(node: &'ast ObjectPatProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast OptCall> for NodeRef<'ast>

Source§

fn from(node: &'ast OptCall) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast OptChainBase> for NodeRef<'ast>

Source§

fn from(node: &'ast OptChainBase) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast OptChainExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast OptChainExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Param> for NodeRef<'ast>

Source§

fn from(node: &'ast Param) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ParamOrTsParamProp> for NodeRef<'ast>

Source§

fn from(node: &'ast ParamOrTsParamProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ParenExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast ParenExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Pat> for NodeRef<'ast>

Source§

fn from(node: &'ast Pat) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast PrivateMethod> for NodeRef<'ast>

Source§

fn from(node: &'ast PrivateMethod) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast PrivateName> for NodeRef<'ast>

Source§

fn from(node: &'ast PrivateName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast PrivateProp> for NodeRef<'ast>

Source§

fn from(node: &'ast PrivateProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Program> for NodeRef<'ast>

Source§

fn from(node: &'ast Program) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Prop> for NodeRef<'ast>

Source§

fn from(node: &'ast Prop) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast PropName> for NodeRef<'ast>

Source§

fn from(node: &'ast PropName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast PropOrSpread> for NodeRef<'ast>

Source§

fn from(node: &'ast PropOrSpread) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Regex> for NodeRef<'ast>

Source§

fn from(node: &'ast Regex) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast RestPat> for NodeRef<'ast>

Source§

fn from(node: &'ast RestPat) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ReturnStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast ReturnStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Script> for NodeRef<'ast>

Source§

fn from(node: &'ast Script) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SeqExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast SeqExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SetterProp> for NodeRef<'ast>

Source§

fn from(node: &'ast SetterProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SimpleAssignTarget> for NodeRef<'ast>

Source§

fn from(node: &'ast SimpleAssignTarget) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SpreadElement> for NodeRef<'ast>

Source§

fn from(node: &'ast SpreadElement) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast StaticBlock> for NodeRef<'ast>

Source§

fn from(node: &'ast StaticBlock) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Stmt> for NodeRef<'ast>

Source§

fn from(node: &'ast Stmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Str> for NodeRef<'ast>

Source§

fn from(node: &'ast Str) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Super> for NodeRef<'ast>

Source§

fn from(node: &'ast Super) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SuperProp> for NodeRef<'ast>

Source§

fn from(node: &'ast SuperProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SuperPropExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast SuperPropExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SwitchCase> for NodeRef<'ast>

Source§

fn from(node: &'ast SwitchCase) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast SwitchStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast SwitchStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TaggedTpl> for NodeRef<'ast>

Source§

fn from(node: &'ast TaggedTpl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ThisExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast ThisExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast ThrowStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast ThrowStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast Tpl> for NodeRef<'ast>

Source§

fn from(node: &'ast Tpl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TplElement> for NodeRef<'ast>

Source§

fn from(node: &'ast TplElement) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TruePlusMinus> for NodeRef<'ast>

Source§

fn from(node: &'ast TruePlusMinus) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TryStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast TryStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsArrayType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsArrayType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsAsExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast TsAsExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsCallSignatureDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsCallSignatureDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsConditionalType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsConditionalType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsConstAssertion> for NodeRef<'ast>

Source§

fn from(node: &'ast TsConstAssertion) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsConstructSignatureDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsConstructSignatureDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsConstructorType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsConstructorType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsEntityName> for NodeRef<'ast>

Source§

fn from(node: &'ast TsEntityName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsEnumDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsEnumDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsEnumMember> for NodeRef<'ast>

Source§

fn from(node: &'ast TsEnumMember) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsEnumMemberId> for NodeRef<'ast>

Source§

fn from(node: &'ast TsEnumMemberId) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsExportAssignment> for NodeRef<'ast>

Source§

fn from(node: &'ast TsExportAssignment) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsExprWithTypeArgs> for NodeRef<'ast>

Source§

fn from(node: &'ast TsExprWithTypeArgs) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsExternalModuleRef> for NodeRef<'ast>

Source§

fn from(node: &'ast TsExternalModuleRef) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsFnOrConstructorType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsFnOrConstructorType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsFnParam> for NodeRef<'ast>

Source§

fn from(node: &'ast TsFnParam) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsFnType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsFnType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsGetterSignature> for NodeRef<'ast>

Source§

fn from(node: &'ast TsGetterSignature) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsImportCallOptions> for NodeRef<'ast>

Source§

fn from(node: &'ast TsImportCallOptions) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsImportEqualsDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsImportEqualsDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsImportType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsImportType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsIndexSignature> for NodeRef<'ast>

Source§

fn from(node: &'ast TsIndexSignature) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsIndexedAccessType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsIndexedAccessType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsInferType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsInferType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsInstantiation> for NodeRef<'ast>

Source§

fn from(node: &'ast TsInstantiation) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsInterfaceBody> for NodeRef<'ast>

Source§

fn from(node: &'ast TsInterfaceBody) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsInterfaceDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsInterfaceDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsIntersectionType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsIntersectionType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsKeywordType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsKeywordType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsKeywordTypeKind> for NodeRef<'ast>

Source§

fn from(node: &'ast TsKeywordTypeKind) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsLit> for NodeRef<'ast>

Source§

fn from(node: &'ast TsLit) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsLitType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsLitType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsMappedType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsMappedType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsMethodSignature> for NodeRef<'ast>

Source§

fn from(node: &'ast TsMethodSignature) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsModuleBlock> for NodeRef<'ast>

Source§

fn from(node: &'ast TsModuleBlock) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsModuleDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsModuleDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsModuleName> for NodeRef<'ast>

Source§

fn from(node: &'ast TsModuleName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsModuleRef> for NodeRef<'ast>

Source§

fn from(node: &'ast TsModuleRef) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsNamespaceBody> for NodeRef<'ast>

Source§

fn from(node: &'ast TsNamespaceBody) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsNamespaceDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsNamespaceDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsNamespaceExportDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsNamespaceExportDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsNonNullExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast TsNonNullExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsOptionalType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsOptionalType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsParamProp> for NodeRef<'ast>

Source§

fn from(node: &'ast TsParamProp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsParamPropParam> for NodeRef<'ast>

Source§

fn from(node: &'ast TsParamPropParam) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsParenthesizedType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsParenthesizedType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsPropertySignature> for NodeRef<'ast>

Source§

fn from(node: &'ast TsPropertySignature) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsQualifiedName> for NodeRef<'ast>

Source§

fn from(node: &'ast TsQualifiedName) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsRestType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsRestType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsSatisfiesExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast TsSatisfiesExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsSetterSignature> for NodeRef<'ast>

Source§

fn from(node: &'ast TsSetterSignature) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsThisType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsThisType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsThisTypeOrIdent> for NodeRef<'ast>

Source§

fn from(node: &'ast TsThisTypeOrIdent) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTplLitType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTplLitType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTupleElement> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTupleElement) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTupleType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTupleType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeAliasDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeAliasDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeAnn> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeAnn) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeAssertion> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeAssertion) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeElement> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeElement) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeLit> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeLit) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeOperator> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeOperator) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeOperatorOp> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeOperatorOp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeParam> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeParam) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeParamDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeParamDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeParamInstantiation> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeParamInstantiation) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypePredicate> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypePredicate) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeQuery> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeQuery) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeQueryExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeQueryExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsTypeRef> for NodeRef<'ast>

Source§

fn from(node: &'ast TsTypeRef) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsUnionOrIntersectionType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsUnionOrIntersectionType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast TsUnionType> for NodeRef<'ast>

Source§

fn from(node: &'ast TsUnionType) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast UnaryExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast UnaryExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast UnaryOp> for NodeRef<'ast>

Source§

fn from(node: &'ast UnaryOp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast UpdateExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast UpdateExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast UpdateOp> for NodeRef<'ast>

Source§

fn from(node: &'ast UpdateOp) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast UsingDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast UsingDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast VarDecl> for NodeRef<'ast>

Source§

fn from(node: &'ast VarDecl) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast VarDeclKind> for NodeRef<'ast>

Source§

fn from(node: &'ast VarDeclKind) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast VarDeclOrExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast VarDeclOrExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast VarDeclarator> for NodeRef<'ast>

Source§

fn from(node: &'ast VarDeclarator) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast WhileStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast WhileStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast WithStmt> for NodeRef<'ast>

Source§

fn from(node: &'ast WithStmt) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> From<&'ast YieldExpr> for NodeRef<'ast>

Source§

fn from(node: &'ast YieldExpr) -> NodeRef<'ast>

Converts to this type from the input type.
Source§

impl<'ast> Copy for NodeRef<'ast>

Auto Trait Implementations§

§

impl<'ast> Freeze for NodeRef<'ast>

§

impl<'ast> RefUnwindSafe for NodeRef<'ast>

§

impl<'ast> Send for NodeRef<'ast>

§

impl<'ast> Sync for NodeRef<'ast>

§

impl<'ast> Unpin for NodeRef<'ast>

§

impl<'ast> UnwindSafe for NodeRef<'ast>

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> AsOut<T> for T
where T: Copy,

Source§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> 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> 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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

Source§

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

Source§

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

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes

Size for each variant:

  • Accessibility: 8 bytes
  • ArrayLit: 8 bytes
  • ArrayPat: 8 bytes
  • ArrowExpr: 8 bytes
  • AssignExpr: 8 bytes
  • AssignOp: 8 bytes
  • AssignPat: 8 bytes
  • AssignPatProp: 8 bytes
  • AssignProp: 8 bytes
  • AssignTarget: 8 bytes
  • AssignTargetPat: 8 bytes
  • AutoAccessor: 8 bytes
  • AwaitExpr: 8 bytes
  • BigInt: 8 bytes
  • BinExpr: 8 bytes
  • BinaryOp: 8 bytes
  • BindingIdent: 8 bytes
  • BlockStmt: 8 bytes
  • BlockStmtOrExpr: 8 bytes
  • Bool: 8 bytes
  • BreakStmt: 8 bytes
  • CallExpr: 8 bytes
  • Callee: 8 bytes
  • CatchClause: 8 bytes
  • Class: 8 bytes
  • ClassDecl: 8 bytes
  • ClassExpr: 8 bytes
  • ClassMember: 8 bytes
  • ClassMethod: 8 bytes
  • ClassProp: 8 bytes
  • ComputedPropName: 8 bytes
  • CondExpr: 8 bytes
  • Constructor: 8 bytes
  • ContinueStmt: 8 bytes
  • DebuggerStmt: 8 bytes
  • Decl: 8 bytes
  • Decorator: 8 bytes
  • DefaultDecl: 8 bytes
  • DoWhileStmt: 8 bytes
  • EmptyStmt: 8 bytes
  • ExportAll: 8 bytes
  • ExportDecl: 8 bytes
  • ExportDefaultDecl: 8 bytes
  • ExportDefaultExpr: 8 bytes
  • ExportDefaultSpecifier: 8 bytes
  • ExportNamedSpecifier: 8 bytes
  • ExportNamespaceSpecifier: 8 bytes
  • ExportSpecifier: 8 bytes
  • Expr: 8 bytes
  • ExprOrSpread: 8 bytes
  • ExprStmt: 8 bytes
  • FnDecl: 8 bytes
  • FnExpr: 8 bytes
  • ForHead: 8 bytes
  • ForInStmt: 8 bytes
  • ForOfStmt: 8 bytes
  • ForStmt: 8 bytes
  • Function: 8 bytes
  • GetterProp: 8 bytes
  • Ident: 8 bytes
  • IdentName: 8 bytes
  • IfStmt: 8 bytes
  • Import: 8 bytes
  • ImportDecl: 8 bytes
  • ImportDefaultSpecifier: 8 bytes
  • ImportNamedSpecifier: 8 bytes
  • ImportPhase: 8 bytes
  • ImportSpecifier: 8 bytes
  • ImportStarAsSpecifier: 8 bytes
  • ImportWith: 8 bytes
  • ImportWithItem: 8 bytes
  • Invalid: 8 bytes
  • JSXAttr: 8 bytes
  • JSXAttrName: 8 bytes
  • JSXAttrOrSpread: 8 bytes
  • JSXAttrValue: 8 bytes
  • JSXClosingElement: 8 bytes
  • JSXClosingFragment: 8 bytes
  • JSXElement: 8 bytes
  • JSXElementChild: 8 bytes
  • JSXElementName: 8 bytes
  • JSXEmptyExpr: 8 bytes
  • JSXExpr: 8 bytes
  • JSXExprContainer: 8 bytes
  • JSXFragment: 8 bytes
  • JSXMemberExpr: 8 bytes
  • JSXNamespacedName: 8 bytes
  • JSXObject: 8 bytes
  • JSXOpeningElement: 8 bytes
  • JSXOpeningFragment: 8 bytes
  • JSXSpreadChild: 8 bytes
  • JSXText: 8 bytes
  • Key: 8 bytes
  • KeyValuePatProp: 8 bytes
  • KeyValueProp: 8 bytes
  • LabeledStmt: 8 bytes
  • Lit: 8 bytes
  • MemberExpr: 8 bytes
  • MemberProp: 8 bytes
  • MetaPropExpr: 8 bytes
  • MetaPropKind: 8 bytes
  • MethodKind: 8 bytes
  • MethodProp: 8 bytes
  • Module: 8 bytes
  • ModuleDecl: 8 bytes
  • ModuleExportName: 8 bytes
  • ModuleItem: 8 bytes
  • NamedExport: 8 bytes
  • NewExpr: 8 bytes
  • Null: 8 bytes
  • Number: 8 bytes
  • ObjectLit: 8 bytes
  • ObjectPat: 8 bytes
  • ObjectPatProp: 8 bytes
  • OptCall: 8 bytes
  • OptChainBase: 8 bytes
  • OptChainExpr: 8 bytes
  • Param: 8 bytes
  • ParamOrTsParamProp: 8 bytes
  • ParenExpr: 8 bytes
  • Pat: 8 bytes
  • PrivateMethod: 8 bytes
  • PrivateName: 8 bytes
  • PrivateProp: 8 bytes
  • Program: 8 bytes
  • Prop: 8 bytes
  • PropName: 8 bytes
  • PropOrSpread: 8 bytes
  • Regex: 8 bytes
  • RestPat: 8 bytes
  • ReturnStmt: 8 bytes
  • Script: 8 bytes
  • SeqExpr: 8 bytes
  • SetterProp: 8 bytes
  • SimpleAssignTarget: 8 bytes
  • SpreadElement: 8 bytes
  • StaticBlock: 8 bytes
  • Stmt: 8 bytes
  • Str: 8 bytes
  • Super: 8 bytes
  • SuperProp: 8 bytes
  • SuperPropExpr: 8 bytes
  • SwitchCase: 8 bytes
  • SwitchStmt: 8 bytes
  • TaggedTpl: 8 bytes
  • ThisExpr: 8 bytes
  • ThrowStmt: 8 bytes
  • Tpl: 8 bytes
  • TplElement: 8 bytes
  • TruePlusMinus: 8 bytes
  • TryStmt: 8 bytes
  • TsArrayType: 8 bytes
  • TsAsExpr: 8 bytes
  • TsCallSignatureDecl: 8 bytes
  • TsConditionalType: 8 bytes
  • TsConstAssertion: 8 bytes
  • TsConstructSignatureDecl: 8 bytes
  • TsConstructorType: 8 bytes
  • TsEntityName: 8 bytes
  • TsEnumDecl: 8 bytes
  • TsEnumMember: 8 bytes
  • TsEnumMemberId: 8 bytes
  • TsExportAssignment: 8 bytes
  • TsExprWithTypeArgs: 8 bytes
  • TsExternalModuleRef: 8 bytes
  • TsFnOrConstructorType: 8 bytes
  • TsFnParam: 8 bytes
  • TsFnType: 8 bytes
  • TsGetterSignature: 8 bytes
  • TsImportCallOptions: 8 bytes
  • TsImportEqualsDecl: 8 bytes
  • TsImportType: 8 bytes
  • TsIndexSignature: 8 bytes
  • TsIndexedAccessType: 8 bytes
  • TsInferType: 8 bytes
  • TsInstantiation: 8 bytes
  • TsInterfaceBody: 8 bytes
  • TsInterfaceDecl: 8 bytes
  • TsIntersectionType: 8 bytes
  • TsKeywordType: 8 bytes
  • TsKeywordTypeKind: 8 bytes
  • TsLit: 8 bytes
  • TsLitType: 8 bytes
  • TsMappedType: 8 bytes
  • TsMethodSignature: 8 bytes
  • TsModuleBlock: 8 bytes
  • TsModuleDecl: 8 bytes
  • TsModuleName: 8 bytes
  • TsModuleRef: 8 bytes
  • TsNamespaceBody: 8 bytes
  • TsNamespaceDecl: 8 bytes
  • TsNamespaceExportDecl: 8 bytes
  • TsNonNullExpr: 8 bytes
  • TsOptionalType: 8 bytes
  • TsParamProp: 8 bytes
  • TsParamPropParam: 8 bytes
  • TsParenthesizedType: 8 bytes
  • TsPropertySignature: 8 bytes
  • TsQualifiedName: 8 bytes
  • TsRestType: 8 bytes
  • TsSatisfiesExpr: 8 bytes
  • TsSetterSignature: 8 bytes
  • TsThisType: 8 bytes
  • TsThisTypeOrIdent: 8 bytes
  • TsTplLitType: 8 bytes
  • TsTupleElement: 8 bytes
  • TsTupleType: 8 bytes
  • TsType: 8 bytes
  • TsTypeAliasDecl: 8 bytes
  • TsTypeAnn: 8 bytes
  • TsTypeAssertion: 8 bytes
  • TsTypeElement: 8 bytes
  • TsTypeLit: 8 bytes
  • TsTypeOperator: 8 bytes
  • TsTypeOperatorOp: 8 bytes
  • TsTypeParam: 8 bytes
  • TsTypeParamDecl: 8 bytes
  • TsTypeParamInstantiation: 8 bytes
  • TsTypePredicate: 8 bytes
  • TsTypeQuery: 8 bytes
  • TsTypeQueryExpr: 8 bytes
  • TsTypeRef: 8 bytes
  • TsUnionOrIntersectionType: 8 bytes
  • TsUnionType: 8 bytes
  • UnaryExpr: 8 bytes
  • UnaryOp: 8 bytes
  • UpdateExpr: 8 bytes
  • UpdateOp: 8 bytes
  • UsingDecl: 8 bytes
  • VarDecl: 8 bytes
  • VarDeclKind: 8 bytes
  • VarDeclOrExpr: 8 bytes
  • VarDeclarator: 8 bytes
  • WhileStmt: 8 bytes
  • WithStmt: 8 bytes
  • YieldExpr: 8 bytes