Enum rustc::ty::UpvarCapture
[−]
[src]
pub enum UpvarCapture<'tcx> {
ByValue,
ByRef(UpvarBorrow<'tcx>),
}🔬 This is a nightly-only experimental API. (
rustc_private)Information describing the capture of an upvar. This is computed
during typeck, specifically by regionck.
Variants
ByValue🔬 This is a nightly-only experimental API. (
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<'tcx>)🔬 This is a nightly-only experimental API. (
rustc_private)Upvar is captured by reference.
Trait Implementations
impl<'tcx> PartialEq for UpvarCapture<'tcx>[src]
fn eq(&self, __arg_0: &UpvarCapture<'tcx>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &UpvarCapture<'tcx>) -> bool
This method tests for !=.
impl<'tcx> Clone for UpvarCapture<'tcx>[src]
fn clone(&self) -> UpvarCapture<'tcx>
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<'tcx> Debug for UpvarCapture<'tcx>[src]
impl<'tcx> Copy for UpvarCapture<'tcx>[src]
impl<'tcx> Encodable for UpvarCapture<'tcx>[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io
impl<'tcx> Decodable for UpvarCapture<'tcx>[src]
fn decode<__D: Decoder>(__arg_0: &mut __D)
-> Result<UpvarCapture<'tcx>, __D::Error>
-> Result<UpvarCapture<'tcx>, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io