pub struct Closure {
pub binder: ClosureBinder,
pub capture_clause: CaptureBy,
pub asyncness: Async,
pub movability: Movability,
pub fn_decl: P<FnDecl>,
pub body: P<Expr>,
pub fn_decl_span: Span,
pub fn_arg_span: Span,
}
Fields§
§binder: ClosureBinder
§capture_clause: CaptureBy
§asyncness: Async
§movability: Movability
§fn_decl: P<FnDecl>
§body: P<Expr>
§fn_decl_span: Span
The span of the declaration block: ‘move |…| -> …’
fn_arg_span: Span
The span of the argument block |...|
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Closure
impl !Send for Closure
impl !Sync for Closure
impl Unpin for Closure
impl !UnwindSafe for Closure
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: 80 bytes