[−][src]Enum rustpython_parser::ast::Expression
Variants
BoolOp
Fields of BoolOp
Binop
Fields of Binop
Subscript
Fields of Subscript
a: Box<Expression>
b: Box<Expression>
Unop
Fields of Unop
op: UnaryOperator
a: Box<Expression>
Await
Fields of Await
value: Box<Expression>
Yield
Fields of Yield
value: Option<Box<Expression>>
YieldFrom
Fields of YieldFrom
value: Box<Expression>
Compare
Fields of Compare
vals: Vec<Expression>
ops: Vec<Comparison>
Attribute
Fields of Attribute
value: Box<Expression>
name: String
Call
Fields of Call
Number
Fields of Number
value: Number
List
Fields of List
elements: Vec<Expression>
Tuple
Fields of Tuple
elements: Vec<Expression>
Dict
Fields of Dict
elements: Vec<(Option<Expression>, Expression)>
Set
Fields of Set
elements: Vec<Expression>
Comprehension
Fields of Comprehension
kind: Box<ComprehensionKind>
generators: Vec<Comprehension>
Starred
Fields of Starred
value: Box<Expression>
Slice
Fields of Slice
elements: Vec<Expression>
String
Fields of String
value: StringGroup
Bytes
Fields of Bytes
Identifier
Fields of Identifier
name: String
Lambda
Fields of Lambda
args: Parameters
body: Box<Expression>
IfExpression
Fields of IfExpression
True
False
None
Ellipsis
Methods
impl Expression
[src]
pub fn name(&self) -> &'static str
[src]
Returns a short name for the node suitable for use in error messages.
Trait Implementations
impl PartialEq<Expression> for Expression
[src]
fn eq(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
[src]
impl Debug for Expression
[src]
Auto Trait Implementations
impl Send for Expression
impl Unpin for Expression
impl Sync for Expression
impl UnwindSafe for Expression
impl RefUnwindSafe for Expression
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,