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<'a, 'tcx> HashStable<StableHashingContext<'a>> for UpvarBorrow<'tcx>
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for UpvarBorrow<'tcx>
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &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 UpvarBorrow<'tcx>
[src]
impl<'tcx> PartialEq for UpvarBorrow<'tcx>
fn eq(&self, other: &UpvarBorrow<'tcx>) -> bool
[src]
fn eq(&self, other: &UpvarBorrow<'tcx>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UpvarBorrow<'tcx>) -> bool
[src]
fn ne(&self, other: &UpvarBorrow<'tcx>) -> bool
This method tests for !=
.
impl<'tcx> Clone for UpvarBorrow<'tcx>
[src]
impl<'tcx> Clone for UpvarBorrow<'tcx>
fn clone(&self) -> UpvarBorrow<'tcx>
[src]
fn clone(&self) -> UpvarBorrow<'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> Copy for UpvarBorrow<'tcx>
[src]
impl<'tcx> Copy for UpvarBorrow<'tcx>
impl<'tcx> Encodable for UpvarBorrow<'tcx>
[src]
impl<'tcx> Encodable for UpvarBorrow<'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 UpvarBorrow<'tcx>
[src]
impl<'tcx> Decodable for UpvarBorrow<'tcx>
fn decode<__D: Decoder>(d: &mut __D) -> Result<UpvarBorrow<'tcx>, __D::Error>
[src]
fn decode<__D: Decoder>(d: &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?
impl<'tcx> Debug for UpvarBorrow<'tcx>
[src]
impl<'tcx> Debug for UpvarBorrow<'tcx>
Auto Trait Implementations
impl<'tcx> !Send for UpvarBorrow<'tcx>
impl<'tcx> !Send for UpvarBorrow<'tcx>
impl<'tcx> !Sync for UpvarBorrow<'tcx>
impl<'tcx> !Sync for UpvarBorrow<'tcx>