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

pub enum ClosureBinder {
    NotPresent,
    For {
        span: Span,
        generic_params: ThinVec<GenericParam>,
    },
}

Expand description

Closure lifetime binder, for<'a, 'b> in for<'a, 'b> |_: &'a (), _: &'b ()|.

§

The binder is not present, all closure lifetimes are inferred.

§

The binder is present.

Fields

Span of the whole for<> clause

for<'a, 'b> |_: &'a (), _: &'b ()| { ... }
^^^^^^^^^^^ -- this

Lifetimes in the for<> closure

for<'a, 'b> |_: &'a (), _: &'b ()| { ... }
    ^^^^^^ -- this

§

§

§

§

§

§

§

§

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: 16 bytes

Size for each variant: