Struct rustc_middle::ty::util::OpaqueTypeExpander[][src]

struct OpaqueTypeExpander<'tcx> {
    seen_opaque_tys: FxHashSet<DefId>,
    expanded_cache: FxHashMap<(DefId, SubstsRef<'tcx>), Ty<'tcx>>,
    primary_def_id: Option<DefId>,
    found_recursion: bool,
    found_any_recursion: bool,
    check_recursion: bool,
    tcx: TyCtxt<'tcx>,
}

Fields

seen_opaque_tys: FxHashSet<DefId>expanded_cache: FxHashMap<(DefId, SubstsRef<'tcx>), Ty<'tcx>>primary_def_id: Option<DefId>found_recursion: boolfound_any_recursion: boolcheck_recursion: bool

Whether or not to check for recursive opaque types. This is true when we’re explicitly checking for opaque type recursion, and ‘false’ otherwise to avoid unnecessary work.

tcx: TyCtxt<'tcx>

Implementations

Trait Implementations

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: 88 bytes