Trait 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]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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]