Enum rustc_ap_rustc_ast::ast::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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CaptureBy
impl UnwindSafe for CaptureBy
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V