Enum rustc_hir::hir::CaptureBy [−][src]
pub enum CaptureBy {
Value,
Ref,
}
Expand description
A capture clause used in closures and async
blocks.
Variants
move |x| y + x
.
move
keyword was not specified.
Auto Trait Implementations
impl RefUnwindSafe for CaptureBy
impl UnwindSafe for CaptureBy
Blanket Implementations
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: 1 byte
Size for each variant:
Value
: 0 bytesRef
: 0 bytes