Struct rustc_typeck::ty::TyS [−][src]
pub struct TyS<'tcx> {
kind: TyKind<'tcx>,
flags: TypeFlags,
outer_exclusive_binder: DebruijnIndex,
}Fields
kind: TyKind<'tcx>This field shouldn’t be used directly and may be removed in the future.
Use TyS::kind() instead.
flags: TypeFlagsThis field shouldn’t be used directly and may be removed in the future.
Use TyS::flags() instead.
outer_exclusive_binder: DebruijnIndexThis is a kind of confusing thing: it stores the smallest binder such that
(a) the binder itself captures nothing but (b) all the late-bound things within the type are captured by some sub-binder.
So, for a type without any late-bound things, like u32, this
will be innermost, because that is the innermost binder that
captures nothing. But for a type &'D u32, where 'D is a
late-bound region with De Bruijn index D, this would be D + 1
– the binder itself does not capture D, but D is captured
by an inner binder.
We call this concept an “exclusive” binder D because all
De Bruijn indices within the type are contained within 0..D
(exclusive).
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TyS<'tcx>
impl<'tcx> !UnwindSafe for TyS<'tcx>
Blanket Implementations
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: 40 bytes