Enum rustc::ty::UpvarCapture
[−]
[src]
pub enum UpvarCapture {
ByValue,
ByRef(UpvarBorrow),
}Unstable (
rustc_private)Information describing the capture of an upvar. This is computed
during typeck, specifically by regionck.
Variants
ByValueUnstable (
rustc_private)Upvar is captured by value. This is always true when the
closure is labeled move, but can also be true in other cases
depending on inference.
ByRef(UpvarBorrow)Unstable (
rustc_private)Upvar is captured by reference.
Trait Implementations
Derived Implementations
impl Copy for UpvarCapture[src]
impl Debug for UpvarCapture[src]
impl Clone for UpvarCapture[src]
fn clone(&self) -> UpvarCapture
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for UpvarCapture[src]
fn eq(&self, __arg_0: &UpvarCapture) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &UpvarCapture) -> bool
This method tests for !=.