Module arithmetic_typing::ast [−][src]
Expand description
ASTs for type annotations and their parsing logic.
Overview
This module contains types representing AST for parsed type annotations; for example,
TypeAst
and FunctionAst
. These two types expose parse
method which
allows to integrate them into nom
parsing.
Structs
ConstraintsAst | Parameter constraints, e.g. |
FunctionAst | Parsed functional type. |
ObjectAst | Object type or constraint, such as |
SliceAst | Parsed slice type, such as |
TupleAst | Parsed tuple type, such as |
TypeConstraintsAst | Bounds that can be placed on a type variable. |
Enums
AstConversionError | Kinds of errors that can occur when converting |
TupleLenAst | Parsed tuple length. |
TypeAst | Type annotation after parsing. |
Type Definitions
SpannedTypeAst | Spanned |