[][src]Enum rustpython_parser::ast::ComprehensionKind

pub enum ComprehensionKind {
    GeneratorExpression {
        element: Expression,
    },
    List {
        element: Expression,
    },
    Set {
        element: Expression,
    },
    Dict {
        key: Expression,
        value: Expression,
    },
}

Variants

GeneratorExpression

Fields of GeneratorExpression

element: Expression
List

Fields of List

element: Expression
Set

Fields of Set

element: Expression
Dict

Fields of Dict

key: Expressionvalue: Expression

Trait Implementations

impl Debug for ComprehensionKind[src]

impl PartialEq<ComprehensionKind> for ComprehensionKind[src]

impl StructuralPartialEq for ComprehensionKind[src]

Auto Trait Implementations

impl RefUnwindSafe for ComprehensionKind

impl Send for ComprehensionKind

impl Sync for ComprehensionKind

impl Unpin for ComprehensionKind

impl UnwindSafe for ComprehensionKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.