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: bool
found_any_recursion: bool
check_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
fn fold_binder<T>(&mut self, t: Binder<'tcx, T>) -> Binder<'tcx, T> where
T: TypeFoldable<'tcx>,
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for OpaqueTypeExpander<'tcx>
impl<'tcx> !Send for OpaqueTypeExpander<'tcx>
impl<'tcx> !Sync for OpaqueTypeExpander<'tcx>
impl<'tcx> Unpin for OpaqueTypeExpander<'tcx>
impl<'tcx> !UnwindSafe for OpaqueTypeExpander<'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: 88 bytes