Skip to main content

AnyNode

Enum AnyNode 

Source
pub enum AnyNode<'tree> {
Show 220 variants Declaration(Declaration<'tree>), Expression(Expression<'tree>), Literal(Literal<'tree>), LvalueExpression(LvalueExpression<'tree>), NonLvalueExpression(NonLvalueExpression<'tree>), Pattern(Pattern<'tree>), Statement(Statement<'tree>), Type(Type<'tree>), TypeDeclaration(TypeDeclaration<'tree>), AccessorDeclaration(AccessorDeclaration<'tree>), AccessorList(AccessorList<'tree>), AliasQualifiedName(AliasQualifiedName<'tree>), AndPattern(AndPattern<'tree>), AnonymousMethodExpression(AnonymousMethodExpression<'tree>), AnonymousObjectCreationExpression(AnonymousObjectCreationExpression<'tree>), Argument(Argument<'tree>), ArgumentList(ArgumentList<'tree>), ArrayCreationExpression(ArrayCreationExpression<'tree>), ArrayRankSpecifier(ArrayRankSpecifier<'tree>), ArrayType(ArrayType<'tree>), ArrowExpressionClause(ArrowExpressionClause<'tree>), AsExpression(AsExpression<'tree>), AssignmentExpression(AssignmentExpression<'tree>), Attribute(Attribute<'tree>), AttributeArgument(AttributeArgument<'tree>), AttributeArgumentList(AttributeArgumentList<'tree>), AttributeList(AttributeList<'tree>), AttributeTargetSpecifier(AttributeTargetSpecifier<'tree>), AwaitExpression(AwaitExpression<'tree>), BaseList(BaseList<'tree>), BinaryExpression(BinaryExpression<'tree>), Block(Block<'tree>), BooleanLiteral(BooleanLiteral<'tree>), BracketedArgumentList(BracketedArgumentList<'tree>), BracketedParameterList(BracketedParameterList<'tree>), BreakStatement(BreakStatement<'tree>), CallingConvention(CallingConvention<'tree>), CastExpression(CastExpression<'tree>), CatchClause(CatchClause<'tree>), CatchDeclaration(CatchDeclaration<'tree>), CatchFilterClause(CatchFilterClause<'tree>), CharacterLiteral(CharacterLiteral<'tree>), CheckedExpression(CheckedExpression<'tree>), CheckedStatement(CheckedStatement<'tree>), ClassDeclaration(ClassDeclaration<'tree>), CompilationUnit(CompilationUnit<'tree>), ConditionalAccessExpression(ConditionalAccessExpression<'tree>), ConditionalExpression(ConditionalExpression<'tree>), ConstantPattern(ConstantPattern<'tree>), ConstructorConstraint(ConstructorConstraint<'tree>), ConstructorDeclaration(ConstructorDeclaration<'tree>), ConstructorInitializer(ConstructorInitializer<'tree>), ContinueStatement(ContinueStatement<'tree>), ConversionOperatorDeclaration(ConversionOperatorDeclaration<'tree>), DeclarationExpression(DeclarationExpression<'tree>), DeclarationList(DeclarationList<'tree>), DeclarationPattern(DeclarationPattern<'tree>), DefaultExpression(DefaultExpression<'tree>), DelegateDeclaration(DelegateDeclaration<'tree>), DestructorDeclaration(DestructorDeclaration<'tree>), DoStatement(DoStatement<'tree>), ElementAccessExpression(ElementAccessExpression<'tree>), ElementBindingExpression(ElementBindingExpression<'tree>), EmptyStatement(EmptyStatement<'tree>), EnumDeclaration(EnumDeclaration<'tree>), EnumMemberDeclaration(EnumMemberDeclaration<'tree>), EnumMemberDeclarationList(EnumMemberDeclarationList<'tree>), EventDeclaration(EventDeclaration<'tree>), EventFieldDeclaration(EventFieldDeclaration<'tree>), ExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier<'tree>), ExpressionStatement(ExpressionStatement<'tree>), ExternAliasDirective(ExternAliasDirective<'tree>), FieldDeclaration(FieldDeclaration<'tree>), FileScopedNamespaceDeclaration(FileScopedNamespaceDeclaration<'tree>), FinallyClause(FinallyClause<'tree>), FixedStatement(FixedStatement<'tree>), ForStatement(ForStatement<'tree>), ForeachStatement(ForeachStatement<'tree>), FromClause(FromClause<'tree>), FunctionPointerParameter(FunctionPointerParameter<'tree>), FunctionPointerType(FunctionPointerType<'tree>), GenericName(GenericName<'tree>), GlobalAttribute(GlobalAttribute<'tree>), GlobalStatement(GlobalStatement<'tree>), GotoStatement(GotoStatement<'tree>), GroupClause(GroupClause<'tree>), Identifier(Identifier<'tree>), IfStatement(IfStatement<'tree>), ImplicitArrayCreationExpression(ImplicitArrayCreationExpression<'tree>), ImplicitObjectCreationExpression(ImplicitObjectCreationExpression<'tree>), ImplicitParameter(ImplicitParameter<'tree>), ImplicitStackallocExpression(ImplicitStackallocExpression<'tree>), ImplicitType(ImplicitType<'tree>), IndexerDeclaration(IndexerDeclaration<'tree>), InitializerExpression(InitializerExpression<'tree>), InterfaceDeclaration(InterfaceDeclaration<'tree>), InterpolatedStringExpression(InterpolatedStringExpression<'tree>), Interpolation(Interpolation<'tree>), InterpolationAlignmentClause(InterpolationAlignmentClause<'tree>), InterpolationFormatClause(InterpolationFormatClause<'tree>), InvocationExpression(InvocationExpression<'tree>), IsExpression(IsExpression<'tree>), IsPatternExpression(IsPatternExpression<'tree>), JoinClause(JoinClause<'tree>), JoinIntoClause(JoinIntoClause<'tree>), LabeledStatement(LabeledStatement<'tree>), LambdaExpression(LambdaExpression<'tree>), LetClause(LetClause<'tree>), ListPattern(ListPattern<'tree>), LocalDeclarationStatement(LocalDeclarationStatement<'tree>), LocalFunctionStatement(LocalFunctionStatement<'tree>), LockStatement(LockStatement<'tree>), MakerefExpression(MakerefExpression<'tree>), MemberAccessExpression(MemberAccessExpression<'tree>), MemberBindingExpression(MemberBindingExpression<'tree>), MethodDeclaration(MethodDeclaration<'tree>), Modifier(Modifier<'tree>), NamespaceDeclaration(NamespaceDeclaration<'tree>), NegatedPattern(NegatedPattern<'tree>), NullableType(NullableType<'tree>), ObjectCreationExpression(ObjectCreationExpression<'tree>), OperatorDeclaration(OperatorDeclaration<'tree>), OrPattern(OrPattern<'tree>), OrderByClause(OrderByClause<'tree>), Parameter(Parameter<'tree>), ParameterList(ParameterList<'tree>), ParenthesizedExpression(ParenthesizedExpression<'tree>), ParenthesizedPattern(ParenthesizedPattern<'tree>), ParenthesizedVariableDesignation(ParenthesizedVariableDesignation<'tree>), PointerType(PointerType<'tree>), PositionalPatternClause(PositionalPatternClause<'tree>), PostfixUnaryExpression(PostfixUnaryExpression<'tree>), PrefixUnaryExpression(PrefixUnaryExpression<'tree>), PreprocDefine(PreprocDefine<'tree>), PreprocElif(PreprocElif<'tree>), PreprocElse(PreprocElse<'tree>), PreprocEndregion(PreprocEndregion<'tree>), PreprocError(PreprocError<'tree>), PreprocIf(PreprocIf<'tree>), PreprocLine(PreprocLine<'tree>), PreprocNullable(PreprocNullable<'tree>), PreprocPragma(PreprocPragma<'tree>), PreprocRegion(PreprocRegion<'tree>), PreprocUndef(PreprocUndef<'tree>), PreprocWarning(PreprocWarning<'tree>), PrimaryConstructorBaseType(PrimaryConstructorBaseType<'tree>), PropertyDeclaration(PropertyDeclaration<'tree>), PropertyPatternClause(PropertyPatternClause<'tree>), QualifiedName(QualifiedName<'tree>), QueryExpression(QueryExpression<'tree>), RangeExpression(RangeExpression<'tree>), RawStringLiteral(RawStringLiteral<'tree>), RecordDeclaration(RecordDeclaration<'tree>), RecursivePattern(RecursivePattern<'tree>), RefExpression(RefExpression<'tree>), RefType(RefType<'tree>), ReftypeExpression(ReftypeExpression<'tree>), RefvalueExpression(RefvalueExpression<'tree>), RelationalPattern(RelationalPattern<'tree>), ReturnStatement(ReturnStatement<'tree>), ScopedType(ScopedType<'tree>), SelectClause(SelectClause<'tree>), SizeofExpression(SizeofExpression<'tree>), StackallocExpression(StackallocExpression<'tree>), StringLiteral(StringLiteral<'tree>), StringLiteralContent(StringLiteralContent<'tree>), StructDeclaration(StructDeclaration<'tree>), Subpattern(Subpattern<'tree>), SwitchBody(SwitchBody<'tree>), SwitchExpression(SwitchExpression<'tree>), SwitchExpressionArm(SwitchExpressionArm<'tree>), SwitchSection(SwitchSection<'tree>), SwitchStatement(SwitchStatement<'tree>), ThrowExpression(ThrowExpression<'tree>), ThrowStatement(ThrowStatement<'tree>), TryStatement(TryStatement<'tree>), TupleElement(TupleElement<'tree>), TupleExpression(TupleExpression<'tree>), TuplePattern(TuplePattern<'tree>), TupleType(TupleType<'tree>), TypeArgumentList(TypeArgumentList<'tree>), TypeParameter(TypeParameter<'tree>), TypeParameterConstraint(TypeParameterConstraint<'tree>), TypeParameterConstraintsClause(TypeParameterConstraintsClause<'tree>), TypeParameterList(TypeParameterList<'tree>), TypePattern(TypePattern<'tree>), TypeofExpression(TypeofExpression<'tree>), UnaryExpression(UnaryExpression<'tree>), UnsafeStatement(UnsafeStatement<'tree>), UsingDirective(UsingDirective<'tree>), UsingStatement(UsingStatement<'tree>), VarPattern(VarPattern<'tree>), VariableDeclaration(VariableDeclaration<'tree>), VariableDeclarator(VariableDeclarator<'tree>), WhenClause(WhenClause<'tree>), WhereClause(WhereClause<'tree>), WhileStatement(WhileStatement<'tree>), WithExpression(WithExpression<'tree>), WithInitializer(WithInitializer<'tree>), YieldStatement(YieldStatement<'tree>), CharacterLiteralContent(CharacterLiteralContent<'tree>), Comment(Comment<'tree>), Discard(Discard<'tree>), EscapeSequence(EscapeSequence<'tree>), IntegerLiteral(IntegerLiteral<'tree>), InterpolationBrace(InterpolationBrace<'tree>), InterpolationQuote(InterpolationQuote<'tree>), InterpolationStart(InterpolationStart<'tree>), NullLiteral(NullLiteral<'tree>), PredefinedType(PredefinedType<'tree>), PreprocArg(PreprocArg<'tree>), RawStringContent(RawStringContent<'tree>), RawStringEnd(RawStringEnd<'tree>), RawStringStart(RawStringStart<'tree>), RealLiteral(RealLiteral<'tree>), ShebangDirective(ShebangDirective<'tree>), StringContent(StringContent<'tree>), StringLiteralEncoding(StringLiteralEncoding<'tree>), VerbatimStringLiteral(VerbatimStringLiteral<'tree>), Unknown(Node<'tree>),
}

Variants§

§

Declaration(Declaration<'tree>)

§

Expression(Expression<'tree>)

§

Literal(Literal<'tree>)

§

LvalueExpression(LvalueExpression<'tree>)

§

NonLvalueExpression(NonLvalueExpression<'tree>)

§

Pattern(Pattern<'tree>)

§

Statement(Statement<'tree>)

§

Type(Type<'tree>)

§

TypeDeclaration(TypeDeclaration<'tree>)

§

AccessorDeclaration(AccessorDeclaration<'tree>)

§

AccessorList(AccessorList<'tree>)

§

AliasQualifiedName(AliasQualifiedName<'tree>)

§

AndPattern(AndPattern<'tree>)

§

AnonymousMethodExpression(AnonymousMethodExpression<'tree>)

§

AnonymousObjectCreationExpression(AnonymousObjectCreationExpression<'tree>)

§

Argument(Argument<'tree>)

§

ArgumentList(ArgumentList<'tree>)

§

ArrayCreationExpression(ArrayCreationExpression<'tree>)

§

ArrayRankSpecifier(ArrayRankSpecifier<'tree>)

§

ArrayType(ArrayType<'tree>)

§

ArrowExpressionClause(ArrowExpressionClause<'tree>)

§

AsExpression(AsExpression<'tree>)

§

AssignmentExpression(AssignmentExpression<'tree>)

§

Attribute(Attribute<'tree>)

§

AttributeArgument(AttributeArgument<'tree>)

§

AttributeArgumentList(AttributeArgumentList<'tree>)

§

AttributeList(AttributeList<'tree>)

§

AttributeTargetSpecifier(AttributeTargetSpecifier<'tree>)

§

AwaitExpression(AwaitExpression<'tree>)

§

BaseList(BaseList<'tree>)

§

BinaryExpression(BinaryExpression<'tree>)

§

Block(Block<'tree>)

§

BooleanLiteral(BooleanLiteral<'tree>)

§

BracketedArgumentList(BracketedArgumentList<'tree>)

§

BracketedParameterList(BracketedParameterList<'tree>)

§

BreakStatement(BreakStatement<'tree>)

§

CallingConvention(CallingConvention<'tree>)

§

CastExpression(CastExpression<'tree>)

§

CatchClause(CatchClause<'tree>)

§

CatchDeclaration(CatchDeclaration<'tree>)

§

CatchFilterClause(CatchFilterClause<'tree>)

§

CharacterLiteral(CharacterLiteral<'tree>)

§

CheckedExpression(CheckedExpression<'tree>)

§

CheckedStatement(CheckedStatement<'tree>)

§

ClassDeclaration(ClassDeclaration<'tree>)

§

CompilationUnit(CompilationUnit<'tree>)

§

ConditionalAccessExpression(ConditionalAccessExpression<'tree>)

§

ConditionalExpression(ConditionalExpression<'tree>)

§

ConstantPattern(ConstantPattern<'tree>)

§

ConstructorConstraint(ConstructorConstraint<'tree>)

§

ConstructorDeclaration(ConstructorDeclaration<'tree>)

§

ConstructorInitializer(ConstructorInitializer<'tree>)

§

ContinueStatement(ContinueStatement<'tree>)

§

ConversionOperatorDeclaration(ConversionOperatorDeclaration<'tree>)

§

DeclarationExpression(DeclarationExpression<'tree>)

§

DeclarationList(DeclarationList<'tree>)

§

DeclarationPattern(DeclarationPattern<'tree>)

§

DefaultExpression(DefaultExpression<'tree>)

§

DelegateDeclaration(DelegateDeclaration<'tree>)

§

DestructorDeclaration(DestructorDeclaration<'tree>)

§

DoStatement(DoStatement<'tree>)

§

ElementAccessExpression(ElementAccessExpression<'tree>)

§

ElementBindingExpression(ElementBindingExpression<'tree>)

§

EmptyStatement(EmptyStatement<'tree>)

§

EnumDeclaration(EnumDeclaration<'tree>)

§

EnumMemberDeclaration(EnumMemberDeclaration<'tree>)

§

EnumMemberDeclarationList(EnumMemberDeclarationList<'tree>)

§

EventDeclaration(EventDeclaration<'tree>)

§

EventFieldDeclaration(EventFieldDeclaration<'tree>)

§

ExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier<'tree>)

§

ExpressionStatement(ExpressionStatement<'tree>)

§

ExternAliasDirective(ExternAliasDirective<'tree>)

§

FieldDeclaration(FieldDeclaration<'tree>)

§

FileScopedNamespaceDeclaration(FileScopedNamespaceDeclaration<'tree>)

§

FinallyClause(FinallyClause<'tree>)

§

FixedStatement(FixedStatement<'tree>)

§

ForStatement(ForStatement<'tree>)

§

ForeachStatement(ForeachStatement<'tree>)

§

FromClause(FromClause<'tree>)

§

FunctionPointerParameter(FunctionPointerParameter<'tree>)

§

FunctionPointerType(FunctionPointerType<'tree>)

§

GenericName(GenericName<'tree>)

§

GlobalAttribute(GlobalAttribute<'tree>)

§

GlobalStatement(GlobalStatement<'tree>)

§

GotoStatement(GotoStatement<'tree>)

§

GroupClause(GroupClause<'tree>)

§

Identifier(Identifier<'tree>)

§

IfStatement(IfStatement<'tree>)

§

ImplicitArrayCreationExpression(ImplicitArrayCreationExpression<'tree>)

§

ImplicitObjectCreationExpression(ImplicitObjectCreationExpression<'tree>)

§

ImplicitParameter(ImplicitParameter<'tree>)

§

ImplicitStackallocExpression(ImplicitStackallocExpression<'tree>)

§

ImplicitType(ImplicitType<'tree>)

§

IndexerDeclaration(IndexerDeclaration<'tree>)

§

InitializerExpression(InitializerExpression<'tree>)

§

InterfaceDeclaration(InterfaceDeclaration<'tree>)

§

InterpolatedStringExpression(InterpolatedStringExpression<'tree>)

§

Interpolation(Interpolation<'tree>)

§

InterpolationAlignmentClause(InterpolationAlignmentClause<'tree>)

§

InterpolationFormatClause(InterpolationFormatClause<'tree>)

§

InvocationExpression(InvocationExpression<'tree>)

§

IsExpression(IsExpression<'tree>)

§

IsPatternExpression(IsPatternExpression<'tree>)

§

JoinClause(JoinClause<'tree>)

§

JoinIntoClause(JoinIntoClause<'tree>)

§

LabeledStatement(LabeledStatement<'tree>)

§

LambdaExpression(LambdaExpression<'tree>)

§

LetClause(LetClause<'tree>)

§

ListPattern(ListPattern<'tree>)

§

LocalDeclarationStatement(LocalDeclarationStatement<'tree>)

§

LocalFunctionStatement(LocalFunctionStatement<'tree>)

§

LockStatement(LockStatement<'tree>)

§

MakerefExpression(MakerefExpression<'tree>)

§

MemberAccessExpression(MemberAccessExpression<'tree>)

§

MemberBindingExpression(MemberBindingExpression<'tree>)

§

MethodDeclaration(MethodDeclaration<'tree>)

§

Modifier(Modifier<'tree>)

§

NamespaceDeclaration(NamespaceDeclaration<'tree>)

§

NegatedPattern(NegatedPattern<'tree>)

§

NullableType(NullableType<'tree>)

§

ObjectCreationExpression(ObjectCreationExpression<'tree>)

§

OperatorDeclaration(OperatorDeclaration<'tree>)

§

OrPattern(OrPattern<'tree>)

§

OrderByClause(OrderByClause<'tree>)

§

Parameter(Parameter<'tree>)

§

ParameterList(ParameterList<'tree>)

§

ParenthesizedExpression(ParenthesizedExpression<'tree>)

§

ParenthesizedPattern(ParenthesizedPattern<'tree>)

§

ParenthesizedVariableDesignation(ParenthesizedVariableDesignation<'tree>)

§

PointerType(PointerType<'tree>)

§

PositionalPatternClause(PositionalPatternClause<'tree>)

§

PostfixUnaryExpression(PostfixUnaryExpression<'tree>)

§

PrefixUnaryExpression(PrefixUnaryExpression<'tree>)

§

PreprocDefine(PreprocDefine<'tree>)

§

PreprocElif(PreprocElif<'tree>)

§

PreprocElse(PreprocElse<'tree>)

§

PreprocEndregion(PreprocEndregion<'tree>)

§

PreprocError(PreprocError<'tree>)

§

PreprocIf(PreprocIf<'tree>)

§

PreprocLine(PreprocLine<'tree>)

§

PreprocNullable(PreprocNullable<'tree>)

§

PreprocPragma(PreprocPragma<'tree>)

§

PreprocRegion(PreprocRegion<'tree>)

§

PreprocUndef(PreprocUndef<'tree>)

§

PreprocWarning(PreprocWarning<'tree>)

§

PrimaryConstructorBaseType(PrimaryConstructorBaseType<'tree>)

§

PropertyDeclaration(PropertyDeclaration<'tree>)

§

PropertyPatternClause(PropertyPatternClause<'tree>)

§

QualifiedName(QualifiedName<'tree>)

§

QueryExpression(QueryExpression<'tree>)

§

RangeExpression(RangeExpression<'tree>)

§

RawStringLiteral(RawStringLiteral<'tree>)

§

RecordDeclaration(RecordDeclaration<'tree>)

§

RecursivePattern(RecursivePattern<'tree>)

§

RefExpression(RefExpression<'tree>)

§

RefType(RefType<'tree>)

§

ReftypeExpression(ReftypeExpression<'tree>)

§

RefvalueExpression(RefvalueExpression<'tree>)

§

RelationalPattern(RelationalPattern<'tree>)

§

ReturnStatement(ReturnStatement<'tree>)

§

ScopedType(ScopedType<'tree>)

§

SelectClause(SelectClause<'tree>)

§

SizeofExpression(SizeofExpression<'tree>)

§

StackallocExpression(StackallocExpression<'tree>)

§

StringLiteral(StringLiteral<'tree>)

§

StringLiteralContent(StringLiteralContent<'tree>)

§

StructDeclaration(StructDeclaration<'tree>)

§

Subpattern(Subpattern<'tree>)

§

SwitchBody(SwitchBody<'tree>)

§

SwitchExpression(SwitchExpression<'tree>)

§

SwitchExpressionArm(SwitchExpressionArm<'tree>)

§

SwitchSection(SwitchSection<'tree>)

§

SwitchStatement(SwitchStatement<'tree>)

§

ThrowExpression(ThrowExpression<'tree>)

§

ThrowStatement(ThrowStatement<'tree>)

§

TryStatement(TryStatement<'tree>)

§

TupleElement(TupleElement<'tree>)

§

TupleExpression(TupleExpression<'tree>)

§

TuplePattern(TuplePattern<'tree>)

§

TupleType(TupleType<'tree>)

§

TypeArgumentList(TypeArgumentList<'tree>)

§

TypeParameter(TypeParameter<'tree>)

§

TypeParameterConstraint(TypeParameterConstraint<'tree>)

§

TypeParameterConstraintsClause(TypeParameterConstraintsClause<'tree>)

§

TypeParameterList(TypeParameterList<'tree>)

§

TypePattern(TypePattern<'tree>)

§

TypeofExpression(TypeofExpression<'tree>)

§

UnaryExpression(UnaryExpression<'tree>)

§

UnsafeStatement(UnsafeStatement<'tree>)

§

UsingDirective(UsingDirective<'tree>)

§

UsingStatement(UsingStatement<'tree>)

§

VarPattern(VarPattern<'tree>)

§

VariableDeclaration(VariableDeclaration<'tree>)

§

VariableDeclarator(VariableDeclarator<'tree>)

§

WhenClause(WhenClause<'tree>)

§

WhereClause(WhereClause<'tree>)

§

WhileStatement(WhileStatement<'tree>)

§

WithExpression(WithExpression<'tree>)

§

WithInitializer(WithInitializer<'tree>)

§

YieldStatement(YieldStatement<'tree>)

§

CharacterLiteralContent(CharacterLiteralContent<'tree>)

§

Comment(Comment<'tree>)

§

Discard(Discard<'tree>)

§

EscapeSequence(EscapeSequence<'tree>)

§

IntegerLiteral(IntegerLiteral<'tree>)

§

InterpolationBrace(InterpolationBrace<'tree>)

§

InterpolationQuote(InterpolationQuote<'tree>)

§

InterpolationStart(InterpolationStart<'tree>)

§

NullLiteral(NullLiteral<'tree>)

§

PredefinedType(PredefinedType<'tree>)

§

PreprocArg(PreprocArg<'tree>)

§

RawStringContent(RawStringContent<'tree>)

§

RawStringEnd(RawStringEnd<'tree>)

§

RawStringStart(RawStringStart<'tree>)

§

RealLiteral(RealLiteral<'tree>)

§

ShebangDirective(ShebangDirective<'tree>)

§

StringContent(StringContent<'tree>)

§

StringLiteralEncoding(StringLiteralEncoding<'tree>)

§

VerbatimStringLiteral(VerbatimStringLiteral<'tree>)

§

Unknown(Node<'tree>)

Implementations§

Source§

impl<'tree> AnyNode<'tree>

Source

pub fn from_node(node: Node<'tree>, src: &'tree [u8]) -> Self

Trait Implementations§

Source§

impl<'tree> Clone for AnyNode<'tree>

Source§

fn clone(&self) -> AnyNode<'tree>

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<'tree> Debug for AnyNode<'tree>

Source§

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

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

impl<'tree> PartialEq for AnyNode<'tree>

Source§

fn eq(&self, other: &AnyNode<'tree>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Spanned for AnyNode<'_>

Source§

fn span(&self) -> Span

Source§

fn start(&self) -> Point

Source§

fn end(&self) -> Point

Source§

impl<'tree> Eq for AnyNode<'tree>

Source§

impl<'tree> StructuralPartialEq for AnyNode<'tree>

Auto Trait Implementations§

§

impl<'tree> Freeze for AnyNode<'tree>

§

impl<'tree> RefUnwindSafe for AnyNode<'tree>

§

impl<'tree> Send for AnyNode<'tree>

§

impl<'tree> Sync for AnyNode<'tree>

§

impl<'tree> Unpin for AnyNode<'tree>

§

impl<'tree> UnsafeUnpin for AnyNode<'tree>

§

impl<'tree> UnwindSafe for AnyNode<'tree>

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.