Trait rustpython_ast::Node

source ·
pub trait Node {
    const NAME: &'static str;
    const FIELD_NAMES: &'static [&'static str];
}

Required Associated Constants§

source

const NAME: &'static str

source

const FIELD_NAMES: &'static [&'static str]

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Node for BoolOp

source§

const NAME: &'static str = "boolop"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOp

source§

const NAME: &'static str = "cmpop"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for ExprContext

source§

const NAME: &'static str = "expr_context"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for Operator

source§

const NAME: &'static str = "operator"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for UnaryOp

source§

const NAME: &'static str = "unaryop"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for BoolOpAnd

source§

const NAME: &'static str = "And"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for BoolOpOr

source§

const NAME: &'static str = "Or"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpEq

source§

const NAME: &'static str = "Eq"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpGt

source§

const NAME: &'static str = "Gt"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpGtE

source§

const NAME: &'static str = "GtE"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpIn

source§

const NAME: &'static str = "In"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpIs

source§

const NAME: &'static str = "Is"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpIsNot

source§

const NAME: &'static str = "IsNot"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpLt

source§

const NAME: &'static str = "Lt"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpLtE

source§

const NAME: &'static str = "LtE"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpNotEq

source§

const NAME: &'static str = "NotEq"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for CmpOpNotIn

source§

const NAME: &'static str = "NotIn"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for ExprContextDel

source§

const NAME: &'static str = "Del"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for ExprContextLoad

source§

const NAME: &'static str = "Load"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for ExprContextStore

source§

const NAME: &'static str = "Store"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorAdd

source§

const NAME: &'static str = "Add"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorBitAnd

source§

const NAME: &'static str = "BitAnd"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorBitOr

source§

const NAME: &'static str = "BitOr"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorBitXor

source§

const NAME: &'static str = "BitXor"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorDiv

source§

const NAME: &'static str = "Div"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorFloorDiv

source§

const NAME: &'static str = "FloorDiv"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorLShift

source§

const NAME: &'static str = "LShift"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorMatMult

source§

const NAME: &'static str = "MatMult"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorMod

source§

const NAME: &'static str = "Mod"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorMult

source§

const NAME: &'static str = "Mult"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorPow

source§

const NAME: &'static str = "Pow"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorRShift

source§

const NAME: &'static str = "RShift"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for OperatorSub

source§

const NAME: &'static str = "Sub"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for UnaryOpInvert

source§

const NAME: &'static str = "Invert"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for UnaryOpNot

source§

const NAME: &'static str = "Not"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for UnaryOpUAdd

source§

const NAME: &'static str = "UAdd"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl Node for UnaryOpUSub

source§

const NAME: &'static str = "USub"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Ast<R>

source§

const NAME: &'static str = "AST"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExceptHandler<R>

source§

const NAME: &'static str = "excepthandler"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Expr<R>

source§

const NAME: &'static str = "expr"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Mod<R>

source§

const NAME: &'static str = "mod"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Pattern<R>

source§

const NAME: &'static str = "pattern"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Stmt<R>

source§

const NAME: &'static str = "stmt"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for TypeIgnore<R>

source§

const NAME: &'static str = "type_ignore"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for TypeParam<R>

source§

const NAME: &'static str = "type_param"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Alias<R>

source§

const NAME: &'static str = "alias"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Arg<R>

source§

const NAME: &'static str = "arg"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ArgWithDefault<R>

source§

const NAME: &'static str = "arg_with_default"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Arguments<R>

source§

const NAME: &'static str = "alt:arguments"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Comprehension<R>

source§

const NAME: &'static str = "comprehension"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExceptHandlerExceptHandler<R>

source§

const NAME: &'static str = "ExceptHandler"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprAttribute<R>

source§

const NAME: &'static str = "Attribute"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprAwait<R>

source§

const NAME: &'static str = "Await"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprBinOp<R>

source§

const NAME: &'static str = "BinOp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprBoolOp<R>

source§

const NAME: &'static str = "BoolOp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprCall<R>

source§

const NAME: &'static str = "Call"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprCompare<R>

source§

const NAME: &'static str = "Compare"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprConstant<R>

source§

const NAME: &'static str = "Constant"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprDict<R>

source§

const NAME: &'static str = "Dict"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprDictComp<R>

source§

const NAME: &'static str = "DictComp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprFormattedValue<R>

source§

const NAME: &'static str = "FormattedValue"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprGeneratorExp<R>

source§

const NAME: &'static str = "GeneratorExp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprIfExp<R>

source§

const NAME: &'static str = "IfExp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprJoinedStr<R>

source§

const NAME: &'static str = "JoinedStr"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprLambda<R>

source§

const NAME: &'static str = "Lambda"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprList<R>

source§

const NAME: &'static str = "List"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprListComp<R>

source§

const NAME: &'static str = "ListComp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprName<R>

source§

const NAME: &'static str = "Name"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprNamedExpr<R>

source§

const NAME: &'static str = "NamedExpr"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprSet<R>

source§

const NAME: &'static str = "Set"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprSetComp<R>

source§

const NAME: &'static str = "SetComp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprSlice<R>

source§

const NAME: &'static str = "Slice"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprStarred<R>

source§

const NAME: &'static str = "Starred"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprSubscript<R>

source§

const NAME: &'static str = "Subscript"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprTuple<R>

source§

const NAME: &'static str = "Tuple"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprUnaryOp<R>

source§

const NAME: &'static str = "UnaryOp"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprYield<R>

source§

const NAME: &'static str = "Yield"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ExprYieldFrom<R>

source§

const NAME: &'static str = "YieldFrom"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for Keyword<R>

source§

const NAME: &'static str = "keyword"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for MatchCase<R>

source§

const NAME: &'static str = "match_case"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ModExpression<R>

source§

const NAME: &'static str = "Expression"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ModFunctionType<R>

source§

const NAME: &'static str = "FunctionType"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ModInteractive<R>

source§

const NAME: &'static str = "Interactive"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for ModModule<R>

source§

const NAME: &'static str = "Module"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchAs<R>

source§

const NAME: &'static str = "MatchAs"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchClass<R>

source§

const NAME: &'static str = "MatchClass"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchMapping<R>

source§

const NAME: &'static str = "MatchMapping"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchOr<R>

source§

const NAME: &'static str = "MatchOr"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchSequence<R>

source§

const NAME: &'static str = "MatchSequence"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchSingleton<R>

source§

const NAME: &'static str = "MatchSingleton"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchStar<R>

source§

const NAME: &'static str = "MatchStar"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PatternMatchValue<R>

source§

const NAME: &'static str = "MatchValue"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for PythonArguments<R>

source§

const NAME: &'static str = "arguments"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtAnnAssign<R>

source§

const NAME: &'static str = "AnnAssign"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtAssert<R>

source§

const NAME: &'static str = "Assert"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtAssign<R>

source§

const NAME: &'static str = "Assign"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtAsyncFor<R>

source§

const NAME: &'static str = "AsyncFor"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtAsyncFunctionDef<R>

source§

const NAME: &'static str = "AsyncFunctionDef"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtAsyncWith<R>

source§

const NAME: &'static str = "AsyncWith"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtAugAssign<R>

source§

const NAME: &'static str = "AugAssign"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtBreak<R>

source§

const NAME: &'static str = "Break"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtClassDef<R>

source§

const NAME: &'static str = "ClassDef"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtContinue<R>

source§

const NAME: &'static str = "Continue"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtDelete<R>

source§

const NAME: &'static str = "Delete"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtExpr<R>

source§

const NAME: &'static str = "Expr"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtFor<R>

source§

const NAME: &'static str = "For"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtFunctionDef<R>

source§

const NAME: &'static str = "FunctionDef"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtGlobal<R>

source§

const NAME: &'static str = "Global"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtIf<R>

source§

const NAME: &'static str = "If"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtImport<R>

source§

const NAME: &'static str = "Import"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtImportFrom<R>

source§

const NAME: &'static str = "ImportFrom"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtMatch<R>

source§

const NAME: &'static str = "Match"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtNonlocal<R>

source§

const NAME: &'static str = "Nonlocal"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtPass<R>

source§

const NAME: &'static str = "Pass"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtRaise<R>

source§

const NAME: &'static str = "Raise"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtReturn<R>

source§

const NAME: &'static str = "Return"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtTry<R>

source§

const NAME: &'static str = "Try"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtTryStar<R>

source§

const NAME: &'static str = "TryStar"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtTypeAlias<R>

source§

const NAME: &'static str = "TypeAlias"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtWhile<R>

source§

const NAME: &'static str = "While"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for StmtWith<R>

source§

const NAME: &'static str = "With"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for TypeIgnoreTypeIgnore<R>

source§

const NAME: &'static str = "TypeIgnore"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for TypeParamParamSpec<R>

source§

const NAME: &'static str = "ParamSpec"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for TypeParamTypeVar<R>

source§

const NAME: &'static str = "TypeVar"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for TypeParamTypeVarTuple<R>

source§

const NAME: &'static str = "TypeVarTuple"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R> Node for WithItem<R>

source§

const NAME: &'static str = "withitem"

source§

const FIELD_NAMES: &'static [&'static str] = _