[−][src]Enum rustpython_parser::ast::Expression
Variants
BoolOpFields of BoolOp
BinopFields of Binop
SubscriptFields of Subscript
a: Box<Expression>b: Box<Expression>UnopFields of Unop
op: UnaryOperatora: Box<Expression>AwaitFields of Await
value: Box<Expression>YieldFields of Yield
value: Option<Box<Expression>>YieldFromFields of YieldFrom
value: Box<Expression>CompareFields of Compare
vals: Vec<Expression>ops: Vec<Comparison>AttributeFields of Attribute
value: Box<Expression>name: StringCallFields of Call
NumberFields of Number
value: NumberListFields of List
elements: Vec<Expression>TupleFields of Tuple
elements: Vec<Expression>DictFields of Dict
elements: Vec<(Option<Expression>, Expression)>SetFields of Set
elements: Vec<Expression>ComprehensionFields of Comprehension
kind: Box<ComprehensionKind>generators: Vec<Comprehension>StarredFields of Starred
value: Box<Expression>SliceFields of Slice
elements: Vec<Expression>StringFields of String
value: StringGroupBytesFields of Bytes
IdentifierFields of Identifier
name: StringLambdaFields of Lambda
args: Parametersbody: Box<Expression>IfExpressionFields of IfExpression
TrueFalseNoneEllipsisMethods
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 Sync for Expression
impl Unpin for Expression
impl Send for Expression
impl UnwindSafe for Expression
impl RefUnwindSafe for Expression
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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,