pub struct Closure {
pub binder: ClosureBinder,
pub capture_clause: CaptureBy,
pub constness: Const,
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
§constness: Const
§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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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