Struct rustc_hir_typeck::inherited::InheritedBuilder
source · pub struct InheritedBuilder<'tcx> {
infcx: InferCtxtBuilder<'tcx>,
def_id: LocalDefId,
typeck_results: RefCell<TypeckResults<'tcx>>,
}
Expand description
A temporary returned by Inherited::build(...)
. This is necessary
for multiple InferCtxt
to share the same typeck_results
without using Rc
or something similar.
Fields§
§infcx: InferCtxtBuilder<'tcx>
§def_id: LocalDefId
§typeck_results: RefCell<TypeckResults<'tcx>>
Implementations§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for InheritedBuilder<'tcx>
impl<'tcx> !Send for InheritedBuilder<'tcx>
impl<'tcx> !Sync for InheritedBuilder<'tcx>
impl<'tcx> Unpin for InheritedBuilder<'tcx>
impl<'tcx> !UnwindSafe for InheritedBuilder<'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: 680 bytes