Struct rustc_borrowck::ty::CapturedPlace [−][src]
pub struct CapturedPlace<'tcx> {
pub place: Place<'tcx>,
pub info: CaptureInfo<'tcx>,
pub mutability: Mutability,
}Expand description
A composite describing a Place that is captured by a closure.
Fields
place: Place<'tcx>The Place that is captured.
info: CaptureInfo<'tcx>CaptureKind and expression(s) that resulted in such capture of place.
mutability: MutabilityRepresents if place can be mutated or not.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for CapturedPlace<'tcx>
impl<'tcx> !Send for CapturedPlace<'tcx>
impl<'tcx> !Sync for CapturedPlace<'tcx>
impl<'tcx> Unpin for CapturedPlace<'tcx>
impl<'tcx> !UnwindSafe for CapturedPlace<'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: 96 bytes