Enum rustc_symbol_mangling::ty::BoundRegionKind [−][src]
Variants
BrAnon(u32)
Tuple Fields
0: u32An anonymous region parameter for a given fn (&T)
BrNamed(DefId, Symbol)
Named region parameters for functions (a in &’a T)
The DefId is needed to distinguish free regions in
the event of shadowing.
BrEnv
Anonymous region for the implicit env pointer parameter to a closure
Auto Trait Implementations
impl RefUnwindSafe for BoundRegionKind
impl Send for BoundRegionKind
impl Sync for BoundRegionKind
impl Unpin for BoundRegionKind
impl UnwindSafe for BoundRegionKind
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
Size for each variant:
BrAnon: 4 bytesBrNamed: 12 bytesBrEnv: 0 bytes