Enum rustc_typeck::middle::ty::UpvarCaptureUnstable
[-] [+]
[src]
pub enum UpvarCapture { ByValue, ByRef(UpvarBorrow), }
Information describing the capture of an upvar. This is computed
during typeck
, specifically by regionck
.
Variants
ByValue | Upvar is captured by value. This is always true when the
closure is labeled |
ByRef | Upvar is captured by reference. |