swc_ecma_visit

Enum NodeRef

source
pub enum NodeRef<'ast> {
Show 235 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), 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),
}

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)

§

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

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

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

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
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

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

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

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

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Conv for T

§

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

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

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

§

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

Deserializes using the given deserializer
§

impl<T> FmtForward for T

§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoEither for T

source§

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

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

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

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

impl<T> LayoutRaw for T

§

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

Gets the layout of the type.
§

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

§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T> Pointee for T

§

type Metadata = ()

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

impl<T> Tap for T

§

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

Immutable access to a value. Read more
§

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

Mutable access to a value. Read more
§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
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
§

impl<T> TryConv for T

§

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

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

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

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

impl<T> WithSubscriber for T

§

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

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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