Struct rustc::ty::UpvarBorrow
[−]
[src]
pub struct UpvarBorrow<'tcx> { pub kind: BorrowKind, pub region: &'tcx Region, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Fields
kind: BorrowKind
🔬 This is a nightly-only experimental API. (
rustc_private
)The kind of borrow: by-ref upvars have access to shared immutable borrows, which are not part of the normal language syntax.
region: &'tcx Region
🔬 This is a nightly-only experimental API. (
rustc_private
)Region of the resulting reference.
Trait Implementations
impl<'tcx> PartialEq for UpvarBorrow<'tcx>
[src]
fn eq(&self, __arg_0: &UpvarBorrow<'tcx>) -> bool
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
This method tests for !=
.
impl<'tcx> Clone for 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
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>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl<'tcx> Decodable for UpvarBorrow<'tcx>
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D)
-> Result<UpvarBorrow<'tcx>, __D::Error>
-> Result<UpvarBorrow<'tcx>, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io