[−][src]Enum rustpython_parser::ast::ExpressionType
A certain type of expression.
Variants
Fields of BoolOp
op: BooleanOperatorvalues: Vec<Expression>A binary operation on two operands.
Fields of Binop
Subscript operation.
Fields of Subscript
a: Box<Expression>b: Box<Expression>An unary operation.
Fields of Unop
op: UnaryOperatora: Box<Expression>An await expression.
Fields of Await
value: Box<Expression>A yield expression.
Fields of Yield
value: Option<Box<Expression>>Fields of YieldFrom
value: Box<Expression>A chained comparison. Note that in python you can use
1 < a < 10 for example.
Fields of Compare
vals: Vec<Expression>ops: Vec<Comparison>Attribute access in the form of value.name.
Fields of Attribute
value: Box<Expression>name: StringA call expression.
Fields of Call
A numeric literal.
Fields of Number
value: NumberA list literal value.
Fields of List
elements: Vec<Expression>A tuple literal value.
Fields of Tuple
elements: Vec<Expression>A dict literal value.
For example: {2: 'two', 3: 'three'}
Fields of Dict
elements: Vec<(Option<Expression>, Expression)>A set literal.
Fields of Set
elements: Vec<Expression>Fields of Comprehension
kind: Box<ComprehensionKind>generators: Vec<Comprehension>A starred expression.
Fields of Starred
value: Box<Expression>A slice expression.
Fields of Slice
elements: Vec<Expression>A string literal.
Fields of String
value: StringGroupA bytes literal.
An identifier, designating a certain variable or type.
Fields of Identifier
name: StringA lambda function expression.
Fields of Lambda
args: Box<Parameters>body: Box<Expression>An if-expression.
Fields of IfExpression
The literal 'True'.
The literal 'False'.
The ellipsis literal ....
Trait Implementations
impl Debug for ExpressionType[src]
impl PartialEq<ExpressionType> for ExpressionType[src]
fn eq(&self, other: &ExpressionType) -> bool[src]
fn ne(&self, other: &ExpressionType) -> bool[src]
impl StructuralPartialEq for ExpressionType[src]
Auto Trait Implementations
impl RefUnwindSafe for ExpressionType
impl Send for ExpressionType
impl Sync for ExpressionType
impl Unpin for ExpressionType
impl UnwindSafe for ExpressionType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,