Struct clippy_utils::rustc_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: TypeFlags

This field shouldn’t be used directly and may be removed in the future. Use TyS::flags() instead.

outer_exclusive_binder: DebruijnIndex

This 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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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