Struct rustc::ty::UpvarBorrow
[−]
[src]
pub struct UpvarBorrow<'tcx> { pub kind: BorrowKind, pub region: Region<'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?
Fields
kind: BorrowKind
🔬 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?
The kind of borrow: by-ref upvars have access to shared immutable borrows, which are not part of the normal language syntax.
region: Region<'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?
Region of the resulting reference.
Trait Implementations
impl<'tcx> HashStable<StableHashingContext<'tcx>> for UpvarBorrow<'tcx>
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'tcx>,
__hasher: &mut StableHasher<W>
)
[src]
&self,
__ctx: &mut StableHashingContext<'tcx>,
__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 UpvarBorrow<'tcx>
[src]
fn eq(&self, __arg_0: &UpvarBorrow<'tcx>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UpvarBorrow<'tcx>) -> bool
[src]
This method tests for !=
.
impl<'tcx> Clone for UpvarBorrow<'tcx>
[src]
fn clone(&self) -> UpvarBorrow<'tcx>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'tcx> Copy for UpvarBorrow<'tcx>
[src]
impl<'tcx> Encodable for UpvarBorrow<'tcx>
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
🔬 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 UpvarBorrow<'tcx>
[src]
fn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<UpvarBorrow<'tcx>, __D::Error>
[src]
__arg_0: &mut __D
) -> Result<UpvarBorrow<'tcx>, __D::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?