Module rust
Top-level import for the Rust language pack
Import path
import rust
Classes
ArithmeticOperation | An arithmetic operation, such as |
AssignArithmeticOperation | An arithmetic assignment operation, such as |
AssignBitwiseOperation | A bitwise assignment operation, such as |
AssignmentExpr | An assignment expression, for example: |
AssignmentOperation | An assignment operation, for example: |
AsyncBlockExpr | An async block expression. For example: |
BinaryArithmeticOperation | A binary arithmetic operation, such as |
BinaryBitwiseOperation | A binary bitwise operation, such as |
BinaryLogicalOperation | A binary logical operation, such as |
BitwiseOperation | A bitwise operation, such as |
ComparisonOperation | A comparison operation, such as |
CompoundAssignmentExpr | A compound assignment expression, for example: |
DerefExpr | A dereference expression, the prefix operator |
EqualityOperation | An equality comparison operation, |
EqualsOperation | The equal comparison operation, |
ExtractedFile | A source file that was extracted. |
File | A file. |
GreaterOrEqualsOperation | The greater than or equal comparison operation, |
GreaterThanOperation | The greater than comparison operation, |
LessOrEqualsOperation | The less than or equal comparison operation, |
LessThanOperation | The less than comparison operation, |
LogicalAndExpr | The logical “and” operation, |
LogicalNotExpr | A logical “not” operation, |
LogicalOperation | A logical operation, such as |
LogicalOrExpr | The logical “or” operation, |
NotEqualsOperation | The not equal comparison operation, |
PrefixArithmeticOperation | A prefix arithmetic operation, such as |
RelationalOperation | A relational comparison operation, that is, one of |
SuccessfullyExtractedFile | A successfully extracted file, that is, a file that was extracted and contains no extraction errors or warnings. |
UnaryLogicalOperation | A unary logical operation, such as |
Aliases
Abi | An ABI specification for an extern function or block. |
Addressable | Something that can be addressed by a path. |
Adt | An ADT (Abstract Data Type) definition, such as |
ArgList | A list of arguments in a function or method call. |
ArrayExpr | The base class for array expressions. For example: |
ArrayListExpr | An array expression with a list of elements. For example: |
ArrayRepeatExpr | An array expression with a repeat operand and a repeat length. For example: |
ArrayTypeRepr | An array type representation. |
AsmClobberAbi | A clobbered ABI in an inline assembly block. |
AsmConst | A constant operand in an inline assembly block. |
AsmDirSpec | An inline assembly direction specifier. |
AsmExpr | An inline assembly expression. For example: |
AsmLabel | A label in an inline assembly block. |
AsmOperand | |
AsmOperandExpr | An operand expression in an inline assembly block. |
AsmOperandNamed | A named operand in an inline assembly block. |
AsmOption | An option in an inline assembly block. |
AsmOptionsList | A list of options in an inline assembly block. |
AsmPiece | |
AsmRegOperand | A register operand in an inline assembly block. |
AsmRegSpec | A register specification in an inline assembly block. |
AsmSym | A symbol operand in an inline assembly block. |
AssocItem | An associated item in a |
AssocItemList | A list of |
AssocTypeArg | An associated type argument in a path. |
AstNode | |
Attr | An attribute applied to an item. |
AwaitExpr | An |
BecomeExpr | A |
BinaryExpr | A binary operation expression. For example: |
BlockExpr | A block expression. For example: |
BooleanLiteralExpr | A Boolean literal. Either |
BoxPat | A box pattern. For example: |
BreakExpr | A break expression. For example: |
CallExpr | A function call expression. For example: |
CallExprBase | A function or method call expression. See |
Callable | A callable. Either a |
CastExpr | A type cast expression. For example: |
CharLiteralExpr | A [character literal][1]. For example: |
ClosureBinder | A closure binder, specifying lifetime or type parameters for a closure. |
ClosureExpr | A closure expression. For example: |
Comment | A comment. For example: |
Const | A constant item declaration. |
ConstArg | A constant argument in a generic argument list. |
ConstBlockPat | A const block pattern. For example: |
ConstParam | A constant parameter in a generic parameter list. |
Container | A file or folder. |
ContinueExpr | A continue expression. For example: |
Crate | A Crate. For example: |
DynTraitTypeRepr | A dynamic trait object type. |
Element | |
EmptyLocation | An entity representing an empty location. |
Enum | An enum declaration. |
Expr | The base class for expressions. |
ExprStmt | An expression statement. For example: |
ExternBlock | An extern block containing foreign function declarations. |
ExternCrate | An extern crate declaration. |
ExternItem | An item inside an extern block. |
ExternItemList | A list of items inside an extern block. |
FieldExpr | A field access expression. For example: |
FieldList | A list of fields in a struct or enum variant. |
FloatLiteralExpr | A [floating-point literal][1]. For example: |
FnPtrTypeRepr | A function pointer type. |
Folder | A folder. |
Folder | Provides logic related to |
ForExpr | A for loop expression. |
ForTypeRepr | A higher-ranked trait bound. |
Format | A format element in a formatting template. For example the |
FormatArgsArg | A FormatArgsArg. For example the |
FormatArgsExpr | A FormatArgsExpr. For example: |
FormatArgument | An argument in a format element in a formatting template. For example the |
FormatTemplateVariableAccess | |
Function | A function declaration. For example |
GenericArg | A generic argument in a generic argument list. |
GenericArgList | The base class for generic arguments. |
GenericParam | A generic parameter in a generic parameter list. |
GenericParamList | A list of generic parameters. For example: |
IdentPat | A binding pattern. For example: |
IfExpr | An |
Impl | An `impl`` block. |
ImplTraitTypeRepr | An |
IndexExpr | An index expression. For example: |
InferTypeRepr | An inferred type ( |
IntegerLiteralExpr | An [integer literal][1]. For example: |
Item | An item such as a function, struct, enum, etc. |
ItemList | A list of items in a module or block. |
Label | A label. For example: |
LabelableExpr | The base class for expressions that can be labeled ( |
LetElse | An else block in a let-else statement. |
LetExpr | A |
LetStmt | A let statement. For example: |
Lifetime | A lifetime annotation. |
LifetimeArg | A lifetime argument in a generic argument list. |
LifetimeParam | A lifetime parameter in a generic parameter list. |
LiteralExpr | A literal expression. For example: |
LiteralPat | A literal pattern. For example: |
Locatable | |
Location | A location as given by a file, a start line, a start column, an end line, and an end column. |
LoopExpr | A loop expression. For example: |
LoopingExpr | The base class for expressions that loop ( |
MacroBlockExpr | A sequence of statements generated by a |
MacroCall | A macro invocation. |
MacroDef | A Rust 2.0 style declarative macro definition. |
MacroExpr | A macro expression, representing the invocation of a macro that produces an expression. |
MacroItems | A sequence of items generated by a macro. For example: |
MacroPat | A macro pattern, representing the invocation of a macro that produces a pattern. |
MacroRules | A macro definition using the |
MacroTypeRepr | A type produced by a macro. |
MatchArm | A match arm. For example: |
MatchArmList | A list of arms in a match expression. |
MatchExpr | A match expression. For example: |
MatchGuard | A guard condition in a match arm. |
Meta | A meta item in an attribute. |
MethodCallExpr | A method call expression. For example: |
Missing | The base class marking errors during parsing or resolution. |
Module | A module declaration. For example: |
Name | An identifier name. |
NameRef | A reference to a name. |
NamedCrate | INTERNAL: Do not use. |
NamedFormatArgument | A named |
NeverTypeRepr | The never type |
NumberLiteralExpr | A number literal. |
OffsetOfExpr | An |
Operation | An operation, for example |
OrPat | An or pattern. For example: |
Param | A parameter in a function or method. For example |
ParamBase | A normal parameter, |
ParamList | A list of parameters in a function, method, or closure declaration. |
ParenExpr | A parenthesized expression. |
ParenPat | A parenthesized pattern. |
ParenTypeRepr | A parenthesized type. |
ParenthesizedArgList | A parenthesized argument list as used in function traits. |
Pat | The base class for patterns. |
Path | A path. For example: |
PathAstNode | An AST element wrapping a path ( |
PathExpr | A path expression. For example: |
PathExprBase | A path expression or a variable access in a formatting template. See |
PathPat | A path pattern. For example: |
PathSegment | A path segment, which is one part of a whole path. For example: - |
PathTypeRepr | A path referring to a type. For example: |
PositionalFormatArgument | A positional |
PrefixExpr | A unary operation expression. For example: |
PtrTypeRepr | A pointer type. |
RangeExpr | A range expression. For example: |
RangePat | A range pattern. For example: |
RefExpr | A reference expression. For example: |
RefPat | A reference pattern. For example: |
RefTypeRepr | A reference type. |
Rename | A rename in a use declaration. |
Resolvable | One of |
RestPat | A rest pattern ( |
RetTypeRepr | A return type in a function signature. |
ReturnExpr | A return expression. For example: |
ReturnTypeSyntax | A return type notation |
SelfParam | A |
SlicePat | A slice pattern. For example: |
SliceTypeRepr | A slice type. |
SourceFile | A source file. |
Static | A static item declaration. |
Stmt | The base class for statements. |
StmtList | A list of statements in a block. |
StringLiteralExpr | A [string literal][1]. For example: |
Struct | A Struct. For example: |
StructExpr | A struct expression. For example: |
StructExprField | A field in a struct expression. For example |
StructExprFieldList | A list of fields in a struct expression. |
StructField | A field in a struct declaration. |
StructFieldList | A list of fields in a struct declaration. |
StructPat | A struct pattern. For example: |
StructPatField | A field in a struct pattern. For example |
StructPatFieldList | A list of fields in a struct pattern. |
Token | The base class for all tokens. |
TokenTree | A token tree in a macro definition or invocation. |
Trait | A Trait. For example: |
TraitAlias | A trait alias. |
TryExpr | A try expression using the |
TupleExpr | A tuple expression. For example: |
TupleField | A field in a tuple struct or tuple enum variant. |
TupleFieldList | A list of fields in a tuple struct or tuple enum variant. |
TuplePat | A tuple pattern. For example: |
TupleStructPat | A tuple struct pattern. For example: |
TupleTypeRepr | A tuple type. |
TypeAlias | A type alias. For example: |
TypeArg | A type argument in a generic argument list. |
TypeBound | A type bound in a trait or generic parameter. |
TypeBoundList | A list of type bounds. |
TypeParam | A type parameter in a generic parameter list. |
TypeRepr | The base class for type references. |
UnderscoreExpr | An underscore expression. For example: |
Unextracted | The base class marking everything that was not properly extracted for some reason, such as: * syntax errors * insufficient context information * yet unimplemented parts of the extractor |
Unimplemented | The base class for unimplemented nodes. This is used to mark nodes that are not yet extracted. |
Union | A union declaration. |
Use | A |
UseBoundGenericArg | |
UseBoundGenericArgs | A use<..> bound to control which generic parameters are captured by an impl Trait return type. |
UseTree | A |
UseTreeList | A list of use trees in a use declaration. |
Variable | A variable. |
VariableAccess | A variable access. |
VariableReadAccess | A variable read. |
VariableWriteAccess | A variable write. |
Variant | A variant in an enum declaration. |
VariantList | A list of variants in an enum declaration. |
Visibility | A visibility modifier. |
WhereClause | A where clause in a generic declaration. |
WherePred | A predicate in a where clause. |
WhileExpr | A while loop expression. |
WildcardPat | A wildcard pattern. For example: |
YeetExpr | A |
YieldExpr | A |