Enum dprint_swc_ext::view::Node

source ·
pub enum Node<'a> {
Show 170 variants ArrayLit(&'a ArrayLit<'a>), ArrayPat(&'a ArrayPat<'a>), ArrowExpr(&'a ArrowExpr<'a>), AssignExpr(&'a AssignExpr<'a>), AssignPat(&'a AssignPat<'a>), AssignPatProp(&'a AssignPatProp<'a>), AssignProp(&'a AssignProp<'a>), AutoAccessor(&'a AutoAccessor<'a>), AwaitExpr(&'a AwaitExpr<'a>), BigInt(&'a BigInt<'a>), BinExpr(&'a BinExpr<'a>), BindingIdent(&'a BindingIdent<'a>), BlockStmt(&'a BlockStmt<'a>), Bool(&'a Bool<'a>), BreakStmt(&'a BreakStmt<'a>), CallExpr(&'a CallExpr<'a>), CatchClause(&'a CatchClause<'a>), Class(&'a Class<'a>), ClassDecl(&'a ClassDecl<'a>), ClassExpr(&'a ClassExpr<'a>), ClassMethod(&'a ClassMethod<'a>), ClassProp(&'a ClassProp<'a>), ComputedPropName(&'a ComputedPropName<'a>), CondExpr(&'a CondExpr<'a>), Constructor(&'a Constructor<'a>), ContinueStmt(&'a ContinueStmt<'a>), DebuggerStmt(&'a DebuggerStmt<'a>), Decorator(&'a Decorator<'a>), DoWhileStmt(&'a DoWhileStmt<'a>), EmptyStmt(&'a EmptyStmt<'a>), ExportAll(&'a ExportAll<'a>), ExportDecl(&'a ExportDecl<'a>), ExportDefaultDecl(&'a ExportDefaultDecl<'a>), ExportDefaultExpr(&'a ExportDefaultExpr<'a>), ExportDefaultSpecifier(&'a ExportDefaultSpecifier<'a>), ExportNamedSpecifier(&'a ExportNamedSpecifier<'a>), ExportNamespaceSpecifier(&'a ExportNamespaceSpecifier<'a>), ExprOrSpread(&'a ExprOrSpread<'a>), ExprStmt(&'a ExprStmt<'a>), FnDecl(&'a FnDecl<'a>), FnExpr(&'a FnExpr<'a>), ForInStmt(&'a ForInStmt<'a>), ForOfStmt(&'a ForOfStmt<'a>), ForStmt(&'a ForStmt<'a>), Function(&'a Function<'a>), GetterProp(&'a GetterProp<'a>), Ident(&'a Ident<'a>), IfStmt(&'a IfStmt<'a>), Import(&'a Import<'a>), ImportDecl(&'a ImportDecl<'a>), ImportDefaultSpecifier(&'a ImportDefaultSpecifier<'a>), ImportNamedSpecifier(&'a ImportNamedSpecifier<'a>), ImportStarAsSpecifier(&'a ImportStarAsSpecifier<'a>), Invalid(&'a Invalid<'a>), JSXAttr(&'a JSXAttr<'a>), JSXClosingElement(&'a JSXClosingElement<'a>), JSXClosingFragment(&'a JSXClosingFragment<'a>), JSXElement(&'a JSXElement<'a>), JSXEmptyExpr(&'a JSXEmptyExpr<'a>), JSXExprContainer(&'a JSXExprContainer<'a>), JSXFragment(&'a JSXFragment<'a>), JSXMemberExpr(&'a JSXMemberExpr<'a>), JSXNamespacedName(&'a JSXNamespacedName<'a>), JSXOpeningElement(&'a JSXOpeningElement<'a>), JSXOpeningFragment(&'a JSXOpeningFragment<'a>), JSXSpreadChild(&'a JSXSpreadChild<'a>), JSXText(&'a JSXText<'a>), KeyValuePatProp(&'a KeyValuePatProp<'a>), KeyValueProp(&'a KeyValueProp<'a>), LabeledStmt(&'a LabeledStmt<'a>), MemberExpr(&'a MemberExpr<'a>), MetaPropExpr(&'a MetaPropExpr<'a>), MethodProp(&'a MethodProp<'a>), Module(&'a Module<'a>), NamedExport(&'a NamedExport<'a>), NewExpr(&'a NewExpr<'a>), Null(&'a Null<'a>), Number(&'a Number<'a>), ObjectLit(&'a ObjectLit<'a>), ObjectPat(&'a ObjectPat<'a>), OptCall(&'a OptCall<'a>), OptChainExpr(&'a OptChainExpr<'a>), Param(&'a Param<'a>), ParenExpr(&'a ParenExpr<'a>), PrivateMethod(&'a PrivateMethod<'a>), PrivateName(&'a PrivateName<'a>), PrivateProp(&'a PrivateProp<'a>), Regex(&'a Regex<'a>), RestPat(&'a RestPat<'a>), ReturnStmt(&'a ReturnStmt<'a>), Script(&'a Script<'a>), SeqExpr(&'a SeqExpr<'a>), SetterProp(&'a SetterProp<'a>), SpreadElement(&'a SpreadElement<'a>), StaticBlock(&'a StaticBlock<'a>), Str(&'a Str<'a>), Super(&'a Super<'a>), SuperPropExpr(&'a SuperPropExpr<'a>), SwitchCase(&'a SwitchCase<'a>), SwitchStmt(&'a SwitchStmt<'a>), TaggedTpl(&'a TaggedTpl<'a>), ThisExpr(&'a ThisExpr<'a>), ThrowStmt(&'a ThrowStmt<'a>), Tpl(&'a Tpl<'a>), TplElement(&'a TplElement<'a>), TryStmt(&'a TryStmt<'a>), TsArrayType(&'a TsArrayType<'a>), TsAsExpr(&'a TsAsExpr<'a>), TsCallSignatureDecl(&'a TsCallSignatureDecl<'a>), TsConditionalType(&'a TsConditionalType<'a>), TsConstAssertion(&'a TsConstAssertion<'a>), TsConstructSignatureDecl(&'a TsConstructSignatureDecl<'a>), TsConstructorType(&'a TsConstructorType<'a>), TsEnumDecl(&'a TsEnumDecl<'a>), TsEnumMember(&'a TsEnumMember<'a>), TsExportAssignment(&'a TsExportAssignment<'a>), TsExprWithTypeArgs(&'a TsExprWithTypeArgs<'a>), TsExternalModuleRef(&'a TsExternalModuleRef<'a>), TsFnType(&'a TsFnType<'a>), TsGetterSignature(&'a TsGetterSignature<'a>), TsImportEqualsDecl(&'a TsImportEqualsDecl<'a>), TsImportType(&'a TsImportType<'a>), TsIndexSignature(&'a TsIndexSignature<'a>), TsIndexedAccessType(&'a TsIndexedAccessType<'a>), TsInferType(&'a TsInferType<'a>), TsInstantiation(&'a TsInstantiation<'a>), TsInterfaceBody(&'a TsInterfaceBody<'a>), TsInterfaceDecl(&'a TsInterfaceDecl<'a>), TsIntersectionType(&'a TsIntersectionType<'a>), TsKeywordType(&'a TsKeywordType<'a>), TsLitType(&'a TsLitType<'a>), TsMappedType(&'a TsMappedType<'a>), TsMethodSignature(&'a TsMethodSignature<'a>), TsModuleBlock(&'a TsModuleBlock<'a>), TsModuleDecl(&'a TsModuleDecl<'a>), TsNamespaceDecl(&'a TsNamespaceDecl<'a>), TsNamespaceExportDecl(&'a TsNamespaceExportDecl<'a>), TsNonNullExpr(&'a TsNonNullExpr<'a>), TsOptionalType(&'a TsOptionalType<'a>), TsParamProp(&'a TsParamProp<'a>), TsParenthesizedType(&'a TsParenthesizedType<'a>), TsPropertySignature(&'a TsPropertySignature<'a>), TsQualifiedName(&'a TsQualifiedName<'a>), TsRestType(&'a TsRestType<'a>), TsSatisfiesExpr(&'a TsSatisfiesExpr<'a>), TsSetterSignature(&'a TsSetterSignature<'a>), TsThisType(&'a TsThisType<'a>), TsTplLitType(&'a TsTplLitType<'a>), TsTupleElement(&'a TsTupleElement<'a>), TsTupleType(&'a TsTupleType<'a>), TsTypeAliasDecl(&'a TsTypeAliasDecl<'a>), TsTypeAnn(&'a TsTypeAnn<'a>), TsTypeAssertion(&'a TsTypeAssertion<'a>), TsTypeLit(&'a TsTypeLit<'a>), TsTypeOperator(&'a TsTypeOperator<'a>), TsTypeParam(&'a TsTypeParam<'a>), TsTypeParamDecl(&'a TsTypeParamDecl<'a>), TsTypeParamInstantiation(&'a TsTypeParamInstantiation<'a>), TsTypePredicate(&'a TsTypePredicate<'a>), TsTypeQuery(&'a TsTypeQuery<'a>), TsTypeRef(&'a TsTypeRef<'a>), TsUnionType(&'a TsUnionType<'a>), UnaryExpr(&'a UnaryExpr<'a>), UpdateExpr(&'a UpdateExpr<'a>), UsingDecl(&'a UsingDecl<'a>), VarDecl(&'a VarDecl<'a>), VarDeclarator(&'a VarDeclarator<'a>), WhileStmt(&'a WhileStmt<'a>), WithStmt(&'a WithStmt<'a>), YieldExpr(&'a YieldExpr<'a>),
}

Variants§

§

ArrayLit(&'a ArrayLit<'a>)

§

ArrayPat(&'a ArrayPat<'a>)

§

ArrowExpr(&'a ArrowExpr<'a>)

§

AssignExpr(&'a AssignExpr<'a>)

§

AssignPat(&'a AssignPat<'a>)

§

AssignPatProp(&'a AssignPatProp<'a>)

§

AssignProp(&'a AssignProp<'a>)

§

AutoAccessor(&'a AutoAccessor<'a>)

§

AwaitExpr(&'a AwaitExpr<'a>)

§

BigInt(&'a BigInt<'a>)

§

BinExpr(&'a BinExpr<'a>)

§

BindingIdent(&'a BindingIdent<'a>)

§

BlockStmt(&'a BlockStmt<'a>)

§

Bool(&'a Bool<'a>)

§

BreakStmt(&'a BreakStmt<'a>)

§

CallExpr(&'a CallExpr<'a>)

§

CatchClause(&'a CatchClause<'a>)

§

Class(&'a Class<'a>)

§

ClassDecl(&'a ClassDecl<'a>)

§

ClassExpr(&'a ClassExpr<'a>)

§

ClassMethod(&'a ClassMethod<'a>)

§

ClassProp(&'a ClassProp<'a>)

§

ComputedPropName(&'a ComputedPropName<'a>)

§

CondExpr(&'a CondExpr<'a>)

§

Constructor(&'a Constructor<'a>)

§

ContinueStmt(&'a ContinueStmt<'a>)

§

DebuggerStmt(&'a DebuggerStmt<'a>)

§

Decorator(&'a Decorator<'a>)

§

DoWhileStmt(&'a DoWhileStmt<'a>)

§

EmptyStmt(&'a EmptyStmt<'a>)

§

ExportAll(&'a ExportAll<'a>)

§

ExportDecl(&'a ExportDecl<'a>)

§

ExportDefaultDecl(&'a ExportDefaultDecl<'a>)

§

ExportDefaultExpr(&'a ExportDefaultExpr<'a>)

§

ExportDefaultSpecifier(&'a ExportDefaultSpecifier<'a>)

§

ExportNamedSpecifier(&'a ExportNamedSpecifier<'a>)

§

ExportNamespaceSpecifier(&'a ExportNamespaceSpecifier<'a>)

§

ExprOrSpread(&'a ExprOrSpread<'a>)

§

ExprStmt(&'a ExprStmt<'a>)

§

FnDecl(&'a FnDecl<'a>)

§

FnExpr(&'a FnExpr<'a>)

§

ForInStmt(&'a ForInStmt<'a>)

§

ForOfStmt(&'a ForOfStmt<'a>)

§

ForStmt(&'a ForStmt<'a>)

§

Function(&'a Function<'a>)

§

GetterProp(&'a GetterProp<'a>)

§

Ident(&'a Ident<'a>)

§

IfStmt(&'a IfStmt<'a>)

§

Import(&'a Import<'a>)

§

ImportDecl(&'a ImportDecl<'a>)

§

ImportDefaultSpecifier(&'a ImportDefaultSpecifier<'a>)

§

ImportNamedSpecifier(&'a ImportNamedSpecifier<'a>)

§

ImportStarAsSpecifier(&'a ImportStarAsSpecifier<'a>)

§

Invalid(&'a Invalid<'a>)

§

JSXAttr(&'a JSXAttr<'a>)

§

JSXClosingElement(&'a JSXClosingElement<'a>)

§

JSXClosingFragment(&'a JSXClosingFragment<'a>)

§

JSXElement(&'a JSXElement<'a>)

§

JSXEmptyExpr(&'a JSXEmptyExpr<'a>)

§

JSXExprContainer(&'a JSXExprContainer<'a>)

§

JSXFragment(&'a JSXFragment<'a>)

§

JSXMemberExpr(&'a JSXMemberExpr<'a>)

§

JSXNamespacedName(&'a JSXNamespacedName<'a>)

§

JSXOpeningElement(&'a JSXOpeningElement<'a>)

§

JSXOpeningFragment(&'a JSXOpeningFragment<'a>)

§

JSXSpreadChild(&'a JSXSpreadChild<'a>)

§

JSXText(&'a JSXText<'a>)

§

KeyValuePatProp(&'a KeyValuePatProp<'a>)

§

KeyValueProp(&'a KeyValueProp<'a>)

§

LabeledStmt(&'a LabeledStmt<'a>)

§

MemberExpr(&'a MemberExpr<'a>)

§

MetaPropExpr(&'a MetaPropExpr<'a>)

§

MethodProp(&'a MethodProp<'a>)

§

Module(&'a Module<'a>)

§

NamedExport(&'a NamedExport<'a>)

§

NewExpr(&'a NewExpr<'a>)

§

Null(&'a Null<'a>)

§

Number(&'a Number<'a>)

§

ObjectLit(&'a ObjectLit<'a>)

§

ObjectPat(&'a ObjectPat<'a>)

§

OptCall(&'a OptCall<'a>)

§

OptChainExpr(&'a OptChainExpr<'a>)

§

Param(&'a Param<'a>)

§

ParenExpr(&'a ParenExpr<'a>)

§

PrivateMethod(&'a PrivateMethod<'a>)

§

PrivateName(&'a PrivateName<'a>)

§

PrivateProp(&'a PrivateProp<'a>)

§

Regex(&'a Regex<'a>)

§

RestPat(&'a RestPat<'a>)

§

ReturnStmt(&'a ReturnStmt<'a>)

§

Script(&'a Script<'a>)

§

SeqExpr(&'a SeqExpr<'a>)

§

SetterProp(&'a SetterProp<'a>)

§

SpreadElement(&'a SpreadElement<'a>)

§

StaticBlock(&'a StaticBlock<'a>)

§

Str(&'a Str<'a>)

§

Super(&'a Super<'a>)

§

SuperPropExpr(&'a SuperPropExpr<'a>)

§

SwitchCase(&'a SwitchCase<'a>)

§

SwitchStmt(&'a SwitchStmt<'a>)

§

TaggedTpl(&'a TaggedTpl<'a>)

§

ThisExpr(&'a ThisExpr<'a>)

§

ThrowStmt(&'a ThrowStmt<'a>)

§

Tpl(&'a Tpl<'a>)

§

TplElement(&'a TplElement<'a>)

§

TryStmt(&'a TryStmt<'a>)

§

TsArrayType(&'a TsArrayType<'a>)

§

TsAsExpr(&'a TsAsExpr<'a>)

§

TsCallSignatureDecl(&'a TsCallSignatureDecl<'a>)

§

TsConditionalType(&'a TsConditionalType<'a>)

§

TsConstAssertion(&'a TsConstAssertion<'a>)

§

TsConstructSignatureDecl(&'a TsConstructSignatureDecl<'a>)

§

TsConstructorType(&'a TsConstructorType<'a>)

§

TsEnumDecl(&'a TsEnumDecl<'a>)

§

TsEnumMember(&'a TsEnumMember<'a>)

§

TsExportAssignment(&'a TsExportAssignment<'a>)

§

TsExprWithTypeArgs(&'a TsExprWithTypeArgs<'a>)

§

TsExternalModuleRef(&'a TsExternalModuleRef<'a>)

§

TsFnType(&'a TsFnType<'a>)

§

TsGetterSignature(&'a TsGetterSignature<'a>)

§

TsImportEqualsDecl(&'a TsImportEqualsDecl<'a>)

§

TsImportType(&'a TsImportType<'a>)

§

TsIndexSignature(&'a TsIndexSignature<'a>)

§

TsIndexedAccessType(&'a TsIndexedAccessType<'a>)

§

TsInferType(&'a TsInferType<'a>)

§

TsInstantiation(&'a TsInstantiation<'a>)

§

TsInterfaceBody(&'a TsInterfaceBody<'a>)

§

TsInterfaceDecl(&'a TsInterfaceDecl<'a>)

§

TsIntersectionType(&'a TsIntersectionType<'a>)

§

TsKeywordType(&'a TsKeywordType<'a>)

§

TsLitType(&'a TsLitType<'a>)

§

TsMappedType(&'a TsMappedType<'a>)

§

TsMethodSignature(&'a TsMethodSignature<'a>)

§

TsModuleBlock(&'a TsModuleBlock<'a>)

§

TsModuleDecl(&'a TsModuleDecl<'a>)

§

TsNamespaceDecl(&'a TsNamespaceDecl<'a>)

§

TsNamespaceExportDecl(&'a TsNamespaceExportDecl<'a>)

§

TsNonNullExpr(&'a TsNonNullExpr<'a>)

§

TsOptionalType(&'a TsOptionalType<'a>)

§

TsParamProp(&'a TsParamProp<'a>)

§

TsParenthesizedType(&'a TsParenthesizedType<'a>)

§

TsPropertySignature(&'a TsPropertySignature<'a>)

§

TsQualifiedName(&'a TsQualifiedName<'a>)

§

TsRestType(&'a TsRestType<'a>)

§

TsSatisfiesExpr(&'a TsSatisfiesExpr<'a>)

§

TsSetterSignature(&'a TsSetterSignature<'a>)

§

TsThisType(&'a TsThisType<'a>)

§

TsTplLitType(&'a TsTplLitType<'a>)

§

TsTupleElement(&'a TsTupleElement<'a>)

§

TsTupleType(&'a TsTupleType<'a>)

§

TsTypeAliasDecl(&'a TsTypeAliasDecl<'a>)

§

TsTypeAnn(&'a TsTypeAnn<'a>)

§

TsTypeAssertion(&'a TsTypeAssertion<'a>)

§

TsTypeLit(&'a TsTypeLit<'a>)

§

TsTypeOperator(&'a TsTypeOperator<'a>)

§

TsTypeParam(&'a TsTypeParam<'a>)

§

TsTypeParamDecl(&'a TsTypeParamDecl<'a>)

§

TsTypeParamInstantiation(&'a TsTypeParamInstantiation<'a>)

§

TsTypePredicate(&'a TsTypePredicate<'a>)

§

TsTypeQuery(&'a TsTypeQuery<'a>)

§

TsTypeRef(&'a TsTypeRef<'a>)

§

TsUnionType(&'a TsUnionType<'a>)

§

UnaryExpr(&'a UnaryExpr<'a>)

§

UpdateExpr(&'a UpdateExpr<'a>)

§

UsingDecl(&'a UsingDecl<'a>)

§

VarDecl(&'a VarDecl<'a>)

§

VarDeclarator(&'a VarDeclarator<'a>)

§

WhileStmt(&'a WhileStmt<'a>)

§

WithStmt(&'a WithStmt<'a>)

§

YieldExpr(&'a YieldExpr<'a>)

Implementations§

source§

impl<'a> Node<'a>

source

pub fn to<T: CastableNode<'a>>(&self) -> Option<&'a T>

source

pub fn expect<T: CastableNode<'a>>(&self) -> &'a T

source

pub fn is<T: CastableNode<'a>>(&self) -> bool

Trait Implementations§

source§

impl<'a> Clone for Node<'a>

source§

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

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<'a> From<&ArrayLit<'a>> for Node<'a>

source§

fn from(node: &ArrayLit<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ArrayPat<'a>> for Node<'a>

source§

fn from(node: &ArrayPat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ArrowExpr<'a>> for Node<'a>

source§

fn from(node: &ArrowExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&AssignExpr<'a>> for Node<'a>

source§

fn from(node: &AssignExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&AssignPat<'a>> for Node<'a>

source§

fn from(node: &AssignPat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&AssignPatProp<'a>> for Node<'a>

source§

fn from(node: &AssignPatProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&AssignProp<'a>> for Node<'a>

source§

fn from(node: &AssignProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<'a> From<&AssignTargetPat<'a>> for Node<'a>

source§

fn from(node: &AssignTargetPat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&AutoAccessor<'a>> for Node<'a>

source§

fn from(node: &AutoAccessor<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&AwaitExpr<'a>> for Node<'a>

source§

fn from(node: &AwaitExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&BigInt<'a>> for Node<'a>

source§

fn from(node: &BigInt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&BinExpr<'a>> for Node<'a>

source§

fn from(node: &BinExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&BindingIdent<'a>> for Node<'a>

source§

fn from(node: &BindingIdent<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&BlockStmt<'a>> for Node<'a>

source§

fn from(node: &BlockStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&BlockStmtOrExpr<'a>> for Node<'a>

source§

fn from(node: &BlockStmtOrExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Bool<'a>> for Node<'a>

source§

fn from(node: &Bool<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&BreakStmt<'a>> for Node<'a>

source§

fn from(node: &BreakStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&CallExpr<'a>> for Node<'a>

source§

fn from(node: &CallExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Callee<'a>> for Node<'a>

source§

fn from(node: &Callee<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&CatchClause<'a>> for Node<'a>

source§

fn from(node: &CatchClause<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Class<'a>> for Node<'a>

source§

fn from(node: &Class<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ClassDecl<'a>> for Node<'a>

source§

fn from(node: &ClassDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ClassExpr<'a>> for Node<'a>

source§

fn from(node: &ClassExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ClassMember<'a>> for Node<'a>

source§

fn from(node: &ClassMember<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ClassMethod<'a>> for Node<'a>

source§

fn from(node: &ClassMethod<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ClassProp<'a>> for Node<'a>

source§

fn from(node: &ClassProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ComputedPropName<'a>> for Node<'a>

source§

fn from(node: &ComputedPropName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&CondExpr<'a>> for Node<'a>

source§

fn from(node: &CondExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Constructor<'a>> for Node<'a>

source§

fn from(node: &Constructor<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ContinueStmt<'a>> for Node<'a>

source§

fn from(node: &ContinueStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&DebuggerStmt<'a>> for Node<'a>

source§

fn from(node: &DebuggerStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Decl<'a>> for Node<'a>

source§

fn from(node: &Decl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Decorator<'a>> for Node<'a>

source§

fn from(node: &Decorator<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&DefaultDecl<'a>> for Node<'a>

source§

fn from(node: &DefaultDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&DoWhileStmt<'a>> for Node<'a>

source§

fn from(node: &DoWhileStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&EmptyStmt<'a>> for Node<'a>

source§

fn from(node: &EmptyStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExportAll<'a>> for Node<'a>

source§

fn from(node: &ExportAll<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExportDecl<'a>> for Node<'a>

source§

fn from(node: &ExportDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExportDefaultDecl<'a>> for Node<'a>

source§

fn from(node: &ExportDefaultDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExportDefaultExpr<'a>> for Node<'a>

source§

fn from(node: &ExportDefaultExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExportDefaultSpecifier<'a>> for Node<'a>

source§

fn from(node: &ExportDefaultSpecifier<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExportNamedSpecifier<'a>> for Node<'a>

source§

fn from(node: &ExportNamedSpecifier<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExportNamespaceSpecifier<'a>> for Node<'a>

source§

fn from(node: &ExportNamespaceSpecifier<'a>) -> Node<'a>

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<'a> From<&Expr<'a>> for Node<'a>

source§

fn from(node: &Expr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExprOrSpread<'a>> for Node<'a>

source§

fn from(node: &ExprOrSpread<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ExprStmt<'a>> for Node<'a>

source§

fn from(node: &ExprStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&FnDecl<'a>> for Node<'a>

source§

fn from(node: &FnDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&FnExpr<'a>> for Node<'a>

source§

fn from(node: &FnExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ForHead<'a>> for Node<'a>

source§

fn from(node: &ForHead<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ForInStmt<'a>> for Node<'a>

source§

fn from(node: &ForInStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ForOfStmt<'a>> for Node<'a>

source§

fn from(node: &ForOfStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ForStmt<'a>> for Node<'a>

source§

fn from(node: &ForStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Function<'a>> for Node<'a>

source§

fn from(node: &Function<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&GetterProp<'a>> for Node<'a>

source§

fn from(node: &GetterProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Ident<'a>> for Node<'a>

source§

fn from(node: &Ident<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&IfStmt<'a>> for Node<'a>

source§

fn from(node: &IfStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Import<'a>> for Node<'a>

source§

fn from(node: &Import<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ImportDecl<'a>> for Node<'a>

source§

fn from(node: &ImportDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ImportDefaultSpecifier<'a>> for Node<'a>

source§

fn from(node: &ImportDefaultSpecifier<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ImportNamedSpecifier<'a>> for Node<'a>

source§

fn from(node: &ImportNamedSpecifier<'a>) -> Node<'a>

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<'a> From<&ImportStarAsSpecifier<'a>> for Node<'a>

source§

fn from(node: &ImportStarAsSpecifier<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Invalid<'a>> for Node<'a>

source§

fn from(node: &Invalid<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXAttr<'a>> for Node<'a>

source§

fn from(node: &JSXAttr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXAttrName<'a>> for Node<'a>

source§

fn from(node: &JSXAttrName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXAttrOrSpread<'a>> for Node<'a>

source§

fn from(node: &JSXAttrOrSpread<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXAttrValue<'a>> for Node<'a>

source§

fn from(node: &JSXAttrValue<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXClosingElement<'a>> for Node<'a>

source§

fn from(node: &JSXClosingElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXClosingFragment<'a>> for Node<'a>

source§

fn from(node: &JSXClosingFragment<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXElement<'a>> for Node<'a>

source§

fn from(node: &JSXElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXElementChild<'a>> for Node<'a>

source§

fn from(node: &JSXElementChild<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXElementName<'a>> for Node<'a>

source§

fn from(node: &JSXElementName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXEmptyExpr<'a>> for Node<'a>

source§

fn from(node: &JSXEmptyExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXExpr<'a>> for Node<'a>

source§

fn from(node: &JSXExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXExprContainer<'a>> for Node<'a>

source§

fn from(node: &JSXExprContainer<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXFragment<'a>> for Node<'a>

source§

fn from(node: &JSXFragment<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXMemberExpr<'a>> for Node<'a>

source§

fn from(node: &JSXMemberExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXNamespacedName<'a>> for Node<'a>

source§

fn from(node: &JSXNamespacedName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXObject<'a>> for Node<'a>

source§

fn from(node: &JSXObject<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXOpeningElement<'a>> for Node<'a>

source§

fn from(node: &JSXOpeningElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXOpeningFragment<'a>> for Node<'a>

source§

fn from(node: &JSXOpeningFragment<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXSpreadChild<'a>> for Node<'a>

source§

fn from(node: &JSXSpreadChild<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&JSXText<'a>> for Node<'a>

source§

fn from(node: &JSXText<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Key<'a>> for Node<'a>

source§

fn from(node: &Key<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&KeyValuePatProp<'a>> for Node<'a>

source§

fn from(node: &KeyValuePatProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&KeyValueProp<'a>> for Node<'a>

source§

fn from(node: &KeyValueProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&LabeledStmt<'a>> for Node<'a>

source§

fn from(node: &LabeledStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Lit<'a>> for Node<'a>

source§

fn from(node: &Lit<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&MemberExpr<'a>> for Node<'a>

source§

fn from(node: &MemberExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&MemberProp<'a>> for Node<'a>

source§

fn from(node: &MemberProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&MetaPropExpr<'a>> for Node<'a>

source§

fn from(node: &MetaPropExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&MethodProp<'a>> for Node<'a>

source§

fn from(node: &MethodProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<'a> From<&ModuleDecl<'a>> for Node<'a>

source§

fn from(node: &ModuleDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ModuleExportName<'a>> for Node<'a>

source§

fn from(node: &ModuleExportName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<'a> From<&NamedExport<'a>> for Node<'a>

source§

fn from(node: &NamedExport<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&NewExpr<'a>> for Node<'a>

source§

fn from(node: &NewExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Null<'a>> for Node<'a>

source§

fn from(node: &Null<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Number<'a>> for Node<'a>

source§

fn from(node: &Number<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ObjectLit<'a>> for Node<'a>

source§

fn from(node: &ObjectLit<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ObjectPat<'a>> for Node<'a>

source§

fn from(node: &ObjectPat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ObjectPatProp<'a>> for Node<'a>

source§

fn from(node: &ObjectPatProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&OptCall<'a>> for Node<'a>

source§

fn from(node: &OptCall<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&OptChainBase<'a>> for Node<'a>

source§

fn from(node: &OptChainBase<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&OptChainExpr<'a>> for Node<'a>

source§

fn from(node: &OptChainExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Param<'a>> for Node<'a>

source§

fn from(node: &Param<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ParamOrTsParamProp<'a>> for Node<'a>

source§

fn from(node: &ParamOrTsParamProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ParenExpr<'a>> for Node<'a>

source§

fn from(node: &ParenExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Pat<'a>> for Node<'a>

source§

fn from(node: &Pat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&PrivateMethod<'a>> for Node<'a>

source§

fn from(node: &PrivateMethod<'a>) -> Node<'a>

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<'a> From<&PrivateProp<'a>> for Node<'a>

source§

fn from(node: &PrivateProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Program<'a>> for Node<'a>

source§

fn from(node: &Program<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Prop<'a>> for Node<'a>

source§

fn from(node: &Prop<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&PropName<'a>> for Node<'a>

source§

fn from(node: &PropName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&PropOrSpread<'a>> for Node<'a>

source§

fn from(node: &PropOrSpread<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Regex<'a>> for Node<'a>

source§

fn from(node: &Regex<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&RestPat<'a>> for Node<'a>

source§

fn from(node: &RestPat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ReturnStmt<'a>> for Node<'a>

source§

fn from(node: &ReturnStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl<'a> From<&SeqExpr<'a>> for Node<'a>

source§

fn from(node: &SeqExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&SetterProp<'a>> for Node<'a>

source§

fn from(node: &SetterProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&SimpleAssignTarget<'a>> for Node<'a>

source§

fn from(node: &SimpleAssignTarget<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&SpreadElement<'a>> for Node<'a>

source§

fn from(node: &SpreadElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&StaticBlock<'a>> for Node<'a>

source§

fn from(node: &StaticBlock<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Stmt<'a>> for Node<'a>

source§

fn from(node: &Stmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Str<'a>> for Node<'a>

source§

fn from(node: &Str<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Super<'a>> for Node<'a>

source§

fn from(node: &Super<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&SuperProp<'a>> for Node<'a>

source§

fn from(node: &SuperProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&SuperPropExpr<'a>> for Node<'a>

source§

fn from(node: &SuperPropExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&SwitchCase<'a>> for Node<'a>

source§

fn from(node: &SwitchCase<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&SwitchStmt<'a>> for Node<'a>

source§

fn from(node: &SwitchStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TaggedTpl<'a>> for Node<'a>

source§

fn from(node: &TaggedTpl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ThisExpr<'a>> for Node<'a>

source§

fn from(node: &ThisExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&ThrowStmt<'a>> for Node<'a>

source§

fn from(node: &ThrowStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&Tpl<'a>> for Node<'a>

source§

fn from(node: &Tpl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TplElement<'a>> for Node<'a>

source§

fn from(node: &TplElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TryStmt<'a>> for Node<'a>

source§

fn from(node: &TryStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsArrayType<'a>> for Node<'a>

source§

fn from(node: &TsArrayType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsAsExpr<'a>> for Node<'a>

source§

fn from(node: &TsAsExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsCallSignatureDecl<'a>> for Node<'a>

source§

fn from(node: &TsCallSignatureDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsConditionalType<'a>> for Node<'a>

source§

fn from(node: &TsConditionalType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsConstAssertion<'a>> for Node<'a>

source§

fn from(node: &TsConstAssertion<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsConstructSignatureDecl<'a>> for Node<'a>

source§

fn from(node: &TsConstructSignatureDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsConstructorType<'a>> for Node<'a>

source§

fn from(node: &TsConstructorType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsEntityName<'a>> for Node<'a>

source§

fn from(node: &TsEntityName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsEnumDecl<'a>> for Node<'a>

source§

fn from(node: &TsEnumDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsEnumMember<'a>> for Node<'a>

source§

fn from(node: &TsEnumMember<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsEnumMemberId<'a>> for Node<'a>

source§

fn from(node: &TsEnumMemberId<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsExportAssignment<'a>> for Node<'a>

source§

fn from(node: &TsExportAssignment<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsExprWithTypeArgs<'a>> for Node<'a>

source§

fn from(node: &TsExprWithTypeArgs<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsExternalModuleRef<'a>> for Node<'a>

source§

fn from(node: &TsExternalModuleRef<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsFnOrConstructorType<'a>> for Node<'a>

source§

fn from(node: &TsFnOrConstructorType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsFnParam<'a>> for Node<'a>

source§

fn from(node: &TsFnParam<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsFnType<'a>> for Node<'a>

source§

fn from(node: &TsFnType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsGetterSignature<'a>> for Node<'a>

source§

fn from(node: &TsGetterSignature<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsImportEqualsDecl<'a>> for Node<'a>

source§

fn from(node: &TsImportEqualsDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsImportType<'a>> for Node<'a>

source§

fn from(node: &TsImportType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsIndexSignature<'a>> for Node<'a>

source§

fn from(node: &TsIndexSignature<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsIndexedAccessType<'a>> for Node<'a>

source§

fn from(node: &TsIndexedAccessType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsInferType<'a>> for Node<'a>

source§

fn from(node: &TsInferType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsInstantiation<'a>> for Node<'a>

source§

fn from(node: &TsInstantiation<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsInterfaceBody<'a>> for Node<'a>

source§

fn from(node: &TsInterfaceBody<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsInterfaceDecl<'a>> for Node<'a>

source§

fn from(node: &TsInterfaceDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsIntersectionType<'a>> for Node<'a>

source§

fn from(node: &TsIntersectionType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsKeywordType<'a>> for Node<'a>

source§

fn from(node: &TsKeywordType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsLit<'a>> for Node<'a>

source§

fn from(node: &TsLit<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsLitType<'a>> for Node<'a>

source§

fn from(node: &TsLitType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsMappedType<'a>> for Node<'a>

source§

fn from(node: &TsMappedType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsMethodSignature<'a>> for Node<'a>

source§

fn from(node: &TsMethodSignature<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsModuleBlock<'a>> for Node<'a>

source§

fn from(node: &TsModuleBlock<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsModuleDecl<'a>> for Node<'a>

source§

fn from(node: &TsModuleDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsModuleName<'a>> for Node<'a>

source§

fn from(node: &TsModuleName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsModuleRef<'a>> for Node<'a>

source§

fn from(node: &TsModuleRef<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsNamespaceBody<'a>> for Node<'a>

source§

fn from(node: &TsNamespaceBody<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsNamespaceDecl<'a>> for Node<'a>

source§

fn from(node: &TsNamespaceDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsNamespaceExportDecl<'a>> for Node<'a>

source§

fn from(node: &TsNamespaceExportDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsNonNullExpr<'a>> for Node<'a>

source§

fn from(node: &TsNonNullExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsOptionalType<'a>> for Node<'a>

source§

fn from(node: &TsOptionalType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsParamProp<'a>> for Node<'a>

source§

fn from(node: &TsParamProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsParamPropParam<'a>> for Node<'a>

source§

fn from(node: &TsParamPropParam<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsParenthesizedType<'a>> for Node<'a>

source§

fn from(node: &TsParenthesizedType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsPropertySignature<'a>> for Node<'a>

source§

fn from(node: &TsPropertySignature<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsQualifiedName<'a>> for Node<'a>

source§

fn from(node: &TsQualifiedName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsRestType<'a>> for Node<'a>

source§

fn from(node: &TsRestType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsSatisfiesExpr<'a>> for Node<'a>

source§

fn from(node: &TsSatisfiesExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsSetterSignature<'a>> for Node<'a>

source§

fn from(node: &TsSetterSignature<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsThisType<'a>> for Node<'a>

source§

fn from(node: &TsThisType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsThisTypeOrIdent<'a>> for Node<'a>

source§

fn from(node: &TsThisTypeOrIdent<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTplLitType<'a>> for Node<'a>

source§

fn from(node: &TsTplLitType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTupleElement<'a>> for Node<'a>

source§

fn from(node: &TsTupleElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTupleType<'a>> for Node<'a>

source§

fn from(node: &TsTupleType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsType<'a>> for Node<'a>

source§

fn from(node: &TsType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeAliasDecl<'a>> for Node<'a>

source§

fn from(node: &TsTypeAliasDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeAnn<'a>> for Node<'a>

source§

fn from(node: &TsTypeAnn<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeAssertion<'a>> for Node<'a>

source§

fn from(node: &TsTypeAssertion<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeElement<'a>> for Node<'a>

source§

fn from(node: &TsTypeElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeLit<'a>> for Node<'a>

source§

fn from(node: &TsTypeLit<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeOperator<'a>> for Node<'a>

source§

fn from(node: &TsTypeOperator<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeParam<'a>> for Node<'a>

source§

fn from(node: &TsTypeParam<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeParamDecl<'a>> for Node<'a>

source§

fn from(node: &TsTypeParamDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeParamInstantiation<'a>> for Node<'a>

source§

fn from(node: &TsTypeParamInstantiation<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypePredicate<'a>> for Node<'a>

source§

fn from(node: &TsTypePredicate<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeQuery<'a>> for Node<'a>

source§

fn from(node: &TsTypeQuery<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeQueryExpr<'a>> for Node<'a>

source§

fn from(node: &TsTypeQueryExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsTypeRef<'a>> for Node<'a>

source§

fn from(node: &TsTypeRef<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsUnionOrIntersectionType<'a>> for Node<'a>

source§

fn from(node: &TsUnionOrIntersectionType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&TsUnionType<'a>> for Node<'a>

source§

fn from(node: &TsUnionType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&UnaryExpr<'a>> for Node<'a>

source§

fn from(node: &UnaryExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&UpdateExpr<'a>> for Node<'a>

source§

fn from(node: &UpdateExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&UsingDecl<'a>> for Node<'a>

source§

fn from(node: &UsingDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&VarDecl<'a>> for Node<'a>

source§

fn from(node: &VarDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&VarDeclOrExpr<'a>> for Node<'a>

source§

fn from(node: &VarDeclOrExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&VarDeclarator<'a>> for Node<'a>

source§

fn from(node: &VarDeclarator<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&WhileStmt<'a>> for Node<'a>

source§

fn from(node: &WhileStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&WithStmt<'a>> for Node<'a>

source§

fn from(node: &WithStmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<&YieldExpr<'a>> for Node<'a>

source§

fn from(node: &YieldExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<AssignTarget<'a>> for Node<'a>

source§

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

Converts to this type from the input type.
source§

impl<'a> From<AssignTargetPat<'a>> for Node<'a>

source§

fn from(node: AssignTargetPat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<BlockStmtOrExpr<'a>> for Node<'a>

source§

fn from(node: BlockStmtOrExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Callee<'a>> for Node<'a>

source§

fn from(node: Callee<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ClassMember<'a>> for Node<'a>

source§

fn from(node: ClassMember<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Decl<'a>> for Node<'a>

source§

fn from(node: Decl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<DefaultDecl<'a>> for Node<'a>

source§

fn from(node: DefaultDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ExportSpecifier<'a>> for Node<'a>

source§

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

Converts to this type from the input type.
source§

impl<'a> From<Expr<'a>> for Node<'a>

source§

fn from(node: Expr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ForHead<'a>> for Node<'a>

source§

fn from(node: ForHead<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ImportSpecifier<'a>> for Node<'a>

source§

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

Converts to this type from the input type.
source§

impl<'a> From<JSXAttrName<'a>> for Node<'a>

source§

fn from(node: JSXAttrName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<JSXAttrOrSpread<'a>> for Node<'a>

source§

fn from(node: JSXAttrOrSpread<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<JSXAttrValue<'a>> for Node<'a>

source§

fn from(node: JSXAttrValue<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<JSXElementChild<'a>> for Node<'a>

source§

fn from(node: JSXElementChild<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<JSXElementName<'a>> for Node<'a>

source§

fn from(node: JSXElementName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<JSXExpr<'a>> for Node<'a>

source§

fn from(node: JSXExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<JSXObject<'a>> for Node<'a>

source§

fn from(node: JSXObject<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Key<'a>> for Node<'a>

source§

fn from(node: Key<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Lit<'a>> for Node<'a>

source§

fn from(node: Lit<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<MemberProp<'a>> for Node<'a>

source§

fn from(node: MemberProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ModuleDecl<'a>> for Node<'a>

source§

fn from(node: ModuleDecl<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ModuleExportName<'a>> for Node<'a>

source§

fn from(node: ModuleExportName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ModuleItem<'a>> for Node<'a>

source§

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

Converts to this type from the input type.
source§

impl<'a> From<ObjectPatProp<'a>> for Node<'a>

source§

fn from(node: ObjectPatProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<OptChainBase<'a>> for Node<'a>

source§

fn from(node: OptChainBase<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<ParamOrTsParamProp<'a>> for Node<'a>

source§

fn from(node: ParamOrTsParamProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Pat<'a>> for Node<'a>

source§

fn from(node: Pat<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Program<'a>> for Node<'a>

source§

fn from(node: Program<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Prop<'a>> for Node<'a>

source§

fn from(node: Prop<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<PropName<'a>> for Node<'a>

source§

fn from(node: PropName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<PropOrSpread<'a>> for Node<'a>

source§

fn from(node: PropOrSpread<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<SimpleAssignTarget<'a>> for Node<'a>

source§

fn from(node: SimpleAssignTarget<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<Stmt<'a>> for Node<'a>

source§

fn from(node: Stmt<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<SuperProp<'a>> for Node<'a>

source§

fn from(node: SuperProp<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsEntityName<'a>> for Node<'a>

source§

fn from(node: TsEntityName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsEnumMemberId<'a>> for Node<'a>

source§

fn from(node: TsEnumMemberId<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsFnOrConstructorType<'a>> for Node<'a>

source§

fn from(node: TsFnOrConstructorType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsFnParam<'a>> for Node<'a>

source§

fn from(node: TsFnParam<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsLit<'a>> for Node<'a>

source§

fn from(node: TsLit<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsModuleName<'a>> for Node<'a>

source§

fn from(node: TsModuleName<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsModuleRef<'a>> for Node<'a>

source§

fn from(node: TsModuleRef<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsNamespaceBody<'a>> for Node<'a>

source§

fn from(node: TsNamespaceBody<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsParamPropParam<'a>> for Node<'a>

source§

fn from(node: TsParamPropParam<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsThisTypeOrIdent<'a>> for Node<'a>

source§

fn from(node: TsThisTypeOrIdent<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsType<'a>> for Node<'a>

source§

fn from(node: TsType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsTypeElement<'a>> for Node<'a>

source§

fn from(node: TsTypeElement<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsTypeQueryExpr<'a>> for Node<'a>

source§

fn from(node: TsTypeQueryExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<TsUnionOrIntersectionType<'a>> for Node<'a>

source§

fn from(node: TsUnionOrIntersectionType<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> From<VarDeclOrExpr<'a>> for Node<'a>

source§

fn from(node: VarDeclOrExpr<'a>) -> Node<'a>

Converts to this type from the input type.
source§

impl<'a> NodeTrait<'a> for Node<'a>

source§

fn parent(&self) -> Option<Node<'a>>

source§

fn children(&self) -> Vec<Node<'a>>

source§

fn as_node(&self) -> Node<'a>

source§

fn kind(&self) -> NodeKind

source§

fn ancestors(&self) -> AncestorIterator<'a>

source§

fn start_line(&self) -> usize

source§

fn end_line(&self) -> usize

source§

fn start_column(&self) -> usize

source§

fn end_column(&self) -> usize

source§

fn char_width(&self) -> usize

source§

fn child_index(&self) -> usize

source§

fn previous_sibling(&self) -> Option<Node<'a>>

source§

fn previous_siblings(&self) -> Vec<Node<'a>>

Gets the previous siblings in the order they appear in the file.
source§

fn next_sibling(&self) -> Option<Node<'a>>

Gets the next siblings in the order they appear in the file.
source§

fn next_siblings(&self) -> Vec<Node<'a>>

source§

fn tokens(&self) -> &'a [TokenAndSpan]

source§

fn children_with_tokens(&self) -> Vec<NodeOrToken<'a>>

source§

fn children_with_tokens_fast( &self, program: impl RootNode<'a>, ) -> Vec<NodeOrToken<'a>>

source§

fn leading_comments(&self) -> CommentsIterator<'a>

source§

fn trailing_comments(&self) -> CommentsIterator<'a>

source§

fn program(&self) -> Program<'a>

Gets the root node.
source§

fn module(&self) -> &Module<'a>

Gets the root node if the view was created from a Module; otherwise panics.
source§

fn script(&self) -> &Script<'a>

Gets the root node if the view was created from a Script; otherwise panics.
source§

fn text(&self) -> &'a str

source§

fn previous_token(&self) -> Option<&'a TokenAndSpan>

source§

fn next_token(&self) -> Option<&'a TokenAndSpan>

source§

fn previous_tokens(&self) -> &'a [TokenAndSpan]

Gets the previous tokens in the order they appear in the file.
source§

fn next_tokens(&self) -> &'a [TokenAndSpan]

Gets the next tokens in the order they appear in the file.
source§

impl<'a> SourceRanged for Node<'a>

source§

fn start(&self) -> SourcePos

source§

fn end(&self) -> SourcePos

source§

fn range(&self) -> SourceRange

source§

fn byte_width(&self) -> usize

source§

fn start_line_fast<'a, P: SourceTextInfoProvider<'a>>(&self, source: P) -> usize

source§

fn end_line_fast<'a, P: SourceTextInfoProvider<'a>>(&self, source: P) -> usize

source§

fn start_column_fast<'a, P: SourceTextInfoProvider<'a>>( &self, source: P, ) -> usize

source§

fn end_column_fast<'a, P: SourceTextInfoProvider<'a>>(&self, source: P) -> usize

source§

fn column_at_pos<'a, P: SourceTextInfoProvider<'a>>( &self, source: P, pos: SourcePos, ) -> usize

source§

fn char_width_fast<'a, P: SourceTextInfoProvider<'a>>(&self, source: P) -> usize

source§

fn text_fast<'a, P: SourceTextInfoProvider<'a>>(&self, source: P) -> &'a str

source§

fn tokens_fast<'a>(&self, program: impl RootNode<'a>) -> &'a [TokenAndSpan]

source§

fn leading_comments_fast<'a>( &self, program: impl RootNode<'a>, ) -> CommentsIterator<'a>

source§

fn trailing_comments_fast<'a>( &self, program: impl RootNode<'a>, ) -> CommentsIterator<'a>

source§

fn previous_token_fast<'a>( &self, program: impl RootNode<'a>, ) -> Option<&'a TokenAndSpan>

source§

fn next_token_fast<'a>( &self, program: impl RootNode<'a>, ) -> Option<&'a TokenAndSpan>

source§

fn previous_tokens_fast<'a>( &self, program: impl RootNode<'a>, ) -> &'a [TokenAndSpan]

source§

fn next_tokens_fast<'a>(&self, program: impl RootNode<'a>) -> &'a [TokenAndSpan]

source§

impl<'a> Copy for Node<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Node<'a>

§

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

§

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

§

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

§

impl<'a> Unpin for Node<'a>

§

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

Blanket Implementations§

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: Copy,

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

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

source§

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

§

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

§

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

§

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<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> Send for T
where T: ?Sized,

source§

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