Struct rustc_borrowck::ty::UpvarBorrow [−][src]
pub struct UpvarBorrow<'tcx> {
pub kind: BorrowKind,
pub region: &'tcx RegionKind,
}Fields
kind: BorrowKindThe kind of borrow: by-ref upvars have access to shared immutable borrows, which are not part of the normal language syntax.
region: &'tcx RegionKindRegion of the resulting reference.
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for UpvarBorrow<'tcx>
impl<'tcx> Send for UpvarBorrow<'tcx>
impl<'tcx> Sync for UpvarBorrow<'tcx>
impl<'tcx> Unpin for UpvarBorrow<'tcx>
impl<'tcx> UnwindSafe for UpvarBorrow<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes