GenBlockKind in rustc_ast::ast - Rust (original) (raw)

pub enum GenBlockKind {
    Async,
    Gen,
    AsyncGen,
}

Expand description

Used to differentiate between async {} blocks and gen {} blocks.

Variants§

§

Async

§

Gen

§

AsyncGen

Implementations§

Trait Implementations§

Auto Trait Implementations§

§

impl DynSend for GenBlockKind

§

impl DynSync for GenBlockKind

§

impl Freeze for GenBlockKind

§

impl RefUnwindSafe for GenBlockKind

§

impl Send for GenBlockKind

§

impl Sync for GenBlockKind

§

impl Unpin for GenBlockKind

§

impl UnwindSafe for GenBlockKind

Blanket Implementations§

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 1 byte

Size for each variant: