NodeRef

Enum NodeRef 

Source
pub enum NodeRef<'a> {
Show 102 variants Script(&'a Script), Module(&'a Module), FunctionBody(&'a FunctionBody), StatementList(&'a StatementList), StatementListItem(&'a StatementListItem), Statement(&'a Statement), Declaration(&'a Declaration), FunctionExpression(&'a FunctionExpression), FunctionDeclaration(&'a FunctionDeclaration), GeneratorExpression(&'a GeneratorExpression), GeneratorDeclaration(&'a GeneratorDeclaration), AsyncFunctionExpression(&'a AsyncFunctionExpression), AsyncFunctionDeclaration(&'a AsyncFunctionDeclaration), AsyncGeneratorExpression(&'a AsyncGeneratorExpression), AsyncGeneratorDeclaration(&'a AsyncGeneratorDeclaration), ClassExpression(&'a ClassExpression), ClassDeclaration(&'a ClassDeclaration), LexicalDeclaration(&'a LexicalDeclaration), Block(&'a Block), VarDeclaration(&'a VarDeclaration), Expression(&'a Expression), If(&'a If), DoWhileLoop(&'a DoWhileLoop), WhileLoop(&'a WhileLoop), ForLoop(&'a ForLoop), ForInLoop(&'a ForInLoop), ForOfLoop(&'a ForOfLoop), Switch(&'a Switch), Continue(&'a Continue), Break(&'a Break), Return(&'a Return), Labelled(&'a Labelled), With(&'a With), Throw(&'a Throw), Try(&'a Try), This(&'a This), NewTarget(&'a NewTarget), ImportMeta(&'a ImportMeta), Identifier(&'a Identifier), FormalParameterList(&'a FormalParameterList), ClassElement(&'a ClassElement), PrivateName(&'a PrivateName), VariableList(&'a VariableList), Variable(&'a Variable), Binding(&'a Binding), Pattern(&'a Pattern), Literal(&'a Literal), RegExpLiteral(&'a RegExpLiteral), ArrayLiteral(&'a ArrayLiteral), ObjectLiteral(&'a ObjectLiteral), Spread(&'a Spread), ArrowFunction(&'a ArrowFunction), AsyncArrowFunction(&'a AsyncArrowFunction), TemplateLiteral(&'a TemplateLiteral), PropertyAccess(&'a PropertyAccess), New(&'a New), Call(&'a Call), SuperCall(&'a SuperCall), ImportCall(&'a ImportCall), Optional(&'a Optional), TaggedTemplate(&'a TaggedTemplate), Assign(&'a Assign), Unary(&'a Unary), Update(&'a Update), Binary(&'a Binary), BinaryInPrivate(&'a BinaryInPrivate), Conditional(&'a Conditional), Await(&'a Await), Yield(&'a Yield), Parenthesized(&'a Parenthesized), ForLoopInitializer(&'a ForLoopInitializer), IterableLoopInitializer(&'a IterableLoopInitializer), Case(&'a Case), Sym(&'a Sym), LabelledItem(&'a LabelledItem), Catch(&'a Catch), Finally(&'a Finally), FormalParameter(&'a FormalParameter), PropertyName(&'a PropertyName), ObjectMethodDefinition(&'a ObjectMethodDefinition), ObjectPattern(&'a ObjectPattern), ArrayPattern(&'a ArrayPattern), PropertyDefinition(&'a PropertyDefinition), TemplateElement(&'a TemplateElement), SimplePropertyAccess(&'a SimplePropertyAccess), PrivatePropertyAccess(&'a PrivatePropertyAccess), SuperPropertyAccess(&'a SuperPropertyAccess), OptionalOperation(&'a OptionalOperation), AssignTarget(&'a AssignTarget), ObjectPatternElement(&'a ObjectPatternElement), ArrayPatternElement(&'a ArrayPatternElement), PropertyAccessField(&'a PropertyAccessField), OptionalOperationKind(&'a OptionalOperationKind), ModuleItemList(&'a ModuleItemList), ModuleItem(&'a ModuleItem), ModuleSpecifier(&'a ModuleSpecifier), ImportKind(&'a ImportKind), ImportDeclaration(&'a ImportDeclaration), ImportSpecifier(&'a ImportSpecifier), ReExportKind(&'a ReExportKind), ExportDeclaration(&'a ExportDeclaration), ExportSpecifier(&'a ExportSpecifier),
}
Expand description

A reference to a node visitable by a Visitor.

Variants§

§

Script(&'a Script)

§

Module(&'a Module)

§

FunctionBody(&'a FunctionBody)

§

StatementList(&'a StatementList)

§

StatementListItem(&'a StatementListItem)

§

Statement(&'a Statement)

§

Declaration(&'a Declaration)

§

FunctionExpression(&'a FunctionExpression)

§

FunctionDeclaration(&'a FunctionDeclaration)

§

GeneratorExpression(&'a GeneratorExpression)

§

GeneratorDeclaration(&'a GeneratorDeclaration)

§

AsyncFunctionExpression(&'a AsyncFunctionExpression)

§

AsyncFunctionDeclaration(&'a AsyncFunctionDeclaration)

§

AsyncGeneratorExpression(&'a AsyncGeneratorExpression)

§

AsyncGeneratorDeclaration(&'a AsyncGeneratorDeclaration)

§

ClassExpression(&'a ClassExpression)

§

ClassDeclaration(&'a ClassDeclaration)

§

LexicalDeclaration(&'a LexicalDeclaration)

§

Block(&'a Block)

§

VarDeclaration(&'a VarDeclaration)

§

Expression(&'a Expression)

§

If(&'a If)

§

DoWhileLoop(&'a DoWhileLoop)

§

WhileLoop(&'a WhileLoop)

§

ForLoop(&'a ForLoop)

§

ForInLoop(&'a ForInLoop)

§

ForOfLoop(&'a ForOfLoop)

§

Switch(&'a Switch)

§

Continue(&'a Continue)

§

Break(&'a Break)

§

Return(&'a Return)

§

Labelled(&'a Labelled)

§

With(&'a With)

§

Throw(&'a Throw)

§

Try(&'a Try)

§

This(&'a This)

§

NewTarget(&'a NewTarget)

§

ImportMeta(&'a ImportMeta)

§

Identifier(&'a Identifier)

§

FormalParameterList(&'a FormalParameterList)

§

ClassElement(&'a ClassElement)

§

PrivateName(&'a PrivateName)

§

VariableList(&'a VariableList)

§

Variable(&'a Variable)

§

Binding(&'a Binding)

§

Pattern(&'a Pattern)

§

Literal(&'a Literal)

§

RegExpLiteral(&'a RegExpLiteral)

§

ArrayLiteral(&'a ArrayLiteral)

§

ObjectLiteral(&'a ObjectLiteral)

§

Spread(&'a Spread)

§

ArrowFunction(&'a ArrowFunction)

§

AsyncArrowFunction(&'a AsyncArrowFunction)

§

TemplateLiteral(&'a TemplateLiteral)

§

PropertyAccess(&'a PropertyAccess)

§

New(&'a New)

§

Call(&'a Call)

§

SuperCall(&'a SuperCall)

§

ImportCall(&'a ImportCall)

§

Optional(&'a Optional)

§

TaggedTemplate(&'a TaggedTemplate)

§

Assign(&'a Assign)

§

Unary(&'a Unary)

§

Update(&'a Update)

§

Binary(&'a Binary)

§

BinaryInPrivate(&'a BinaryInPrivate)

§

Conditional(&'a Conditional)

§

Await(&'a Await)

§

Yield(&'a Yield)

§

Parenthesized(&'a Parenthesized)

§

ForLoopInitializer(&'a ForLoopInitializer)

§

IterableLoopInitializer(&'a IterableLoopInitializer)

§

Case(&'a Case)

§

Sym(&'a Sym)

§

LabelledItem(&'a LabelledItem)

§

Catch(&'a Catch)

§

Finally(&'a Finally)

§

FormalParameter(&'a FormalParameter)

§

PropertyName(&'a PropertyName)

§

ObjectMethodDefinition(&'a ObjectMethodDefinition)

§

ObjectPattern(&'a ObjectPattern)

§

ArrayPattern(&'a ArrayPattern)

§

PropertyDefinition(&'a PropertyDefinition)

§

TemplateElement(&'a TemplateElement)

§

SimplePropertyAccess(&'a SimplePropertyAccess)

§

PrivatePropertyAccess(&'a PrivatePropertyAccess)

§

SuperPropertyAccess(&'a SuperPropertyAccess)

§

OptionalOperation(&'a OptionalOperation)

§

AssignTarget(&'a AssignTarget)

§

ObjectPatternElement(&'a ObjectPatternElement)

§

ArrayPatternElement(&'a ArrayPatternElement)

§

PropertyAccessField(&'a PropertyAccessField)

§

OptionalOperationKind(&'a OptionalOperationKind)

§

ModuleItemList(&'a ModuleItemList)

§

ModuleItem(&'a ModuleItem)

§

ModuleSpecifier(&'a ModuleSpecifier)

§

ImportKind(&'a ImportKind)

§

ImportDeclaration(&'a ImportDeclaration)

§

ImportSpecifier(&'a ImportSpecifier)

§

ReExportKind(&'a ReExportKind)

§

ExportDeclaration(&'a ExportDeclaration)

§

ExportSpecifier(&'a ExportSpecifier)

Trait Implementations§

Source§

impl<'a> Clone for NodeRef<'a>

Source§

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

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<'a> Debug for NodeRef<'a>

Source§

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

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

impl<'a> From<&'a ArrayLiteral> for NodeRef<'a>

Source§

fn from(node: &'a ArrayLiteral) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ArrayPattern> for NodeRef<'a>

Source§

fn from(node: &'a ArrayPattern) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ArrayPatternElement> for NodeRef<'a>

Source§

fn from(node: &'a ArrayPatternElement) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ArrowFunction> for NodeRef<'a>

Source§

fn from(node: &'a ArrowFunction) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Assign> for NodeRef<'a>

Source§

fn from(node: &'a Assign) -> NodeRef<'a>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<&'a AsyncArrowFunction> for NodeRef<'a>

Source§

fn from(node: &'a AsyncArrowFunction) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a AsyncFunctionDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a AsyncFunctionDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a AsyncFunctionExpression> for NodeRef<'a>

Source§

fn from(node: &'a AsyncFunctionExpression) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a AsyncGeneratorDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a AsyncGeneratorDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a AsyncGeneratorExpression> for NodeRef<'a>

Source§

fn from(node: &'a AsyncGeneratorExpression) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Await> for NodeRef<'a>

Source§

fn from(node: &'a Await) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Binary> for NodeRef<'a>

Source§

fn from(node: &'a Binary) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a BinaryInPrivate> for NodeRef<'a>

Source§

fn from(node: &'a BinaryInPrivate) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Binding> for NodeRef<'a>

Source§

fn from(node: &'a Binding) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Block> for NodeRef<'a>

Source§

fn from(node: &'a Block) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Break> for NodeRef<'a>

Source§

fn from(node: &'a Break) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Call> for NodeRef<'a>

Source§

fn from(node: &'a Call) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Case> for NodeRef<'a>

Source§

fn from(node: &'a Case) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Catch> for NodeRef<'a>

Source§

fn from(node: &'a Catch) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ClassDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a ClassDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ClassElement> for NodeRef<'a>

Source§

fn from(node: &'a ClassElement) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ClassExpression> for NodeRef<'a>

Source§

fn from(node: &'a ClassExpression) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Conditional> for NodeRef<'a>

Source§

fn from(node: &'a Conditional) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Continue> for NodeRef<'a>

Source§

fn from(node: &'a Continue) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Declaration> for NodeRef<'a>

Source§

fn from(node: &'a Declaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a DoWhileLoop> for NodeRef<'a>

Source§

fn from(node: &'a DoWhileLoop) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ExportDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a ExportDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<&'a Expression> for NodeRef<'a>

Source§

fn from(node: &'a Expression) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Finally> for NodeRef<'a>

Source§

fn from(node: &'a Finally) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ForInLoop> for NodeRef<'a>

Source§

fn from(node: &'a ForInLoop) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ForLoop> for NodeRef<'a>

Source§

fn from(node: &'a ForLoop) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ForLoopInitializer> for NodeRef<'a>

Source§

fn from(node: &'a ForLoopInitializer) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ForOfLoop> for NodeRef<'a>

Source§

fn from(node: &'a ForOfLoop) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a FormalParameter> for NodeRef<'a>

Source§

fn from(node: &'a FormalParameter) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a FormalParameterList> for NodeRef<'a>

Source§

fn from(node: &'a FormalParameterList) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a FunctionBody> for NodeRef<'a>

Source§

fn from(node: &'a FunctionBody) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a FunctionDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a FunctionDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a FunctionExpression> for NodeRef<'a>

Source§

fn from(node: &'a FunctionExpression) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a GeneratorDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a GeneratorDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a GeneratorExpression> for NodeRef<'a>

Source§

fn from(node: &'a GeneratorExpression) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Identifier> for NodeRef<'a>

Source§

fn from(node: &'a Identifier) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a If> for NodeRef<'a>

Source§

fn from(node: &'a If) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ImportCall> for NodeRef<'a>

Source§

fn from(node: &'a ImportCall) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ImportDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a ImportDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ImportKind> for NodeRef<'a>

Source§

fn from(node: &'a ImportKind) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ImportMeta> for NodeRef<'a>

Source§

fn from(node: &'a ImportMeta) -> NodeRef<'a>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<&'a IterableLoopInitializer> for NodeRef<'a>

Source§

fn from(node: &'a IterableLoopInitializer) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Labelled> for NodeRef<'a>

Source§

fn from(node: &'a Labelled) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a LabelledItem> for NodeRef<'a>

Source§

fn from(node: &'a LabelledItem) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a LexicalDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a LexicalDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Literal> for NodeRef<'a>

Source§

fn from(node: &'a Literal) -> NodeRef<'a>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<&'a ModuleItemList> for NodeRef<'a>

Source§

fn from(node: &'a ModuleItemList) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ModuleSpecifier> for NodeRef<'a>

Source§

fn from(node: &'a ModuleSpecifier) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a New> for NodeRef<'a>

Source§

fn from(node: &'a New) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a NewTarget> for NodeRef<'a>

Source§

fn from(node: &'a NewTarget) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ObjectLiteral> for NodeRef<'a>

Source§

fn from(node: &'a ObjectLiteral) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ObjectMethodDefinition> for NodeRef<'a>

Source§

fn from(node: &'a ObjectMethodDefinition) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ObjectPattern> for NodeRef<'a>

Source§

fn from(node: &'a ObjectPattern) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ObjectPatternElement> for NodeRef<'a>

Source§

fn from(node: &'a ObjectPatternElement) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Optional> for NodeRef<'a>

Source§

fn from(node: &'a Optional) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a OptionalOperation> for NodeRef<'a>

Source§

fn from(node: &'a OptionalOperation) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a OptionalOperationKind> for NodeRef<'a>

Source§

fn from(node: &'a OptionalOperationKind) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Parenthesized> for NodeRef<'a>

Source§

fn from(node: &'a Parenthesized) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Pattern> for NodeRef<'a>

Source§

fn from(node: &'a Pattern) -> NodeRef<'a>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<&'a PrivatePropertyAccess> for NodeRef<'a>

Source§

fn from(node: &'a PrivatePropertyAccess) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a PropertyAccess> for NodeRef<'a>

Source§

fn from(node: &'a PropertyAccess) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a PropertyAccessField> for NodeRef<'a>

Source§

fn from(node: &'a PropertyAccessField) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a PropertyDefinition> for NodeRef<'a>

Source§

fn from(node: &'a PropertyDefinition) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a PropertyName> for NodeRef<'a>

Source§

fn from(node: &'a PropertyName) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ReExportKind> for NodeRef<'a>

Source§

fn from(node: &'a ReExportKind) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a RegExpLiteral> for NodeRef<'a>

Source§

fn from(node: &'a RegExpLiteral) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Return> for NodeRef<'a>

Source§

fn from(node: &'a Return) -> NodeRef<'a>

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'a> From<&'a SimplePropertyAccess> for NodeRef<'a>

Source§

fn from(node: &'a SimplePropertyAccess) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Spread> for NodeRef<'a>

Source§

fn from(node: &'a Spread) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Statement> for NodeRef<'a>

Source§

fn from(node: &'a Statement) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a StatementList> for NodeRef<'a>

Source§

fn from(node: &'a StatementList) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a StatementListItem> for NodeRef<'a>

Source§

fn from(node: &'a StatementListItem) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a SuperCall> for NodeRef<'a>

Source§

fn from(node: &'a SuperCall) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a SuperPropertyAccess> for NodeRef<'a>

Source§

fn from(node: &'a SuperPropertyAccess) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Switch> for NodeRef<'a>

Source§

fn from(node: &'a Switch) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Sym> for NodeRef<'a>

Source§

fn from(node: &'a Sym) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a TaggedTemplate> for NodeRef<'a>

Source§

fn from(node: &'a TaggedTemplate) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a TemplateElement> for NodeRef<'a>

Source§

fn from(node: &'a TemplateElement) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a TemplateLiteral> for NodeRef<'a>

Source§

fn from(node: &'a TemplateLiteral) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a This> for NodeRef<'a>

Source§

fn from(node: &'a This) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Throw> for NodeRef<'a>

Source§

fn from(node: &'a Throw) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Try> for NodeRef<'a>

Source§

fn from(node: &'a Try) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Unary> for NodeRef<'a>

Source§

fn from(node: &'a Unary) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Update> for NodeRef<'a>

Source§

fn from(node: &'a Update) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a VarDeclaration> for NodeRef<'a>

Source§

fn from(node: &'a VarDeclaration) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Variable> for NodeRef<'a>

Source§

fn from(node: &'a Variable) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a VariableList> for NodeRef<'a>

Source§

fn from(node: &'a VariableList) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a WhileLoop> for NodeRef<'a>

Source§

fn from(node: &'a WhileLoop) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a With> for NodeRef<'a>

Source§

fn from(node: &'a With) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Yield> for NodeRef<'a>

Source§

fn from(node: &'a Yield) -> NodeRef<'a>

Converts to this type from the input type.
Source§

impl<'a> Copy for NodeRef<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for NodeRef<'a>

§

impl<'a> !RefUnwindSafe for NodeRef<'a>

§

impl<'a> !Send for NodeRef<'a>

§

impl<'a> !Sync for NodeRef<'a>

§

impl<'a> Unpin for NodeRef<'a>

§

impl<'a> !UnwindSafe for NodeRef<'a>

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> 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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