Enum rustc::ty::UpvarCapture [−][src]
pub enum UpvarCapture<'tcx> {
ByValue,
ByRef(UpvarBorrow<'tcx>),
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Upvar is captured by reference.
Trait Implementations
impl<'a, 'gcx> HashStable<StableHashingContext<'a>> for UpvarCapture<'gcx>[src]
impl<'a, 'gcx> HashStable<StableHashingContext<'a>> for UpvarCapture<'gcx>fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'tcx> PartialEq for UpvarCapture<'tcx>[src]
impl<'tcx> PartialEq for UpvarCapture<'tcx>fn eq(&self, other: &UpvarCapture<'tcx>) -> bool[src]
fn eq(&self, other: &UpvarCapture<'tcx>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &UpvarCapture<'tcx>) -> bool[src]
fn ne(&self, other: &UpvarCapture<'tcx>) -> boolThis method tests for !=.
impl<'tcx> Clone for UpvarCapture<'tcx>[src]
impl<'tcx> Clone for UpvarCapture<'tcx>fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'tcx> Debug for UpvarCapture<'tcx>[src]
impl<'tcx> Debug for UpvarCapture<'tcx>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'tcx> Copy for UpvarCapture<'tcx>[src]
impl<'tcx> Copy for UpvarCapture<'tcx>impl<'tcx> Encodable for UpvarCapture<'tcx>[src]
impl<'tcx> Encodable for UpvarCapture<'tcx>fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'tcx> Decodable for UpvarCapture<'tcx>[src]
impl<'tcx> Decodable for UpvarCapture<'tcx>Auto Trait Implementations
impl<'tcx> !Send for UpvarCapture<'tcx>
impl<'tcx> !Send for UpvarCapture<'tcx>impl<'tcx> !Sync for UpvarCapture<'tcx>
impl<'tcx> !Sync for UpvarCapture<'tcx>