pub type Arg = ExprType;
Expand description
An argument value that can be any expression. This replaces the old limited Arg enum.
Aliased Type§
pub enum Arg {
Show 29 variants
BoolOp(BoolOp),
NamedExpr(NamedExpr),
BinOp(BinOp),
UnaryOp(UnaryOp),
Lambda(Lambda),
IfExp(IfExp),
Dict(Dict),
Set(Set),
ListComp(ListComp),
DictComp(DictComp),
SetComp(SetComp),
GeneratorExp(GeneratorExp),
Await(Await),
Yield(Yield),
YieldFrom(YieldFrom),
Compare(Compare),
Call(Call),
FormattedValue(FormattedValue),
JoinedStr(JoinedStr),
Constant(Constant),
Attribute(Attribute),
Subscript(Subscript),
Starred(Starred),
Name(Name),
List(Vec<ExprType>),
Tuple(Tuple),
NoneType(Constant),
Unimplemented(String),
Unknown,
}
Variants§
BoolOp(BoolOp)
NamedExpr(NamedExpr)
BinOp(BinOp)
UnaryOp(UnaryOp)
Lambda(Lambda)
IfExp(IfExp)
Dict(Dict)
Set(Set)
ListComp(ListComp)
DictComp(DictComp)
SetComp(SetComp)
GeneratorExp(GeneratorExp)
Await(Await)
Yield(Yield)
YieldFrom(YieldFrom)
Compare(Compare)
Call(Call)
FormattedValue(FormattedValue)
JoinedStr(JoinedStr)
Constant(Constant)
Attribute(Attribute)
These can appear in a few places, such as the left side of an assignment.