Struct rustc_infer::infer::opaque_types::Instantiator
source · [−]struct Instantiator<'a, 'tcx> {
infcx: &'a InferCtxt<'a, 'tcx>,
body_id: HirId,
param_env: ParamEnv<'tcx>,
value_span: Span,
obligations: Vec<PredicateObligation<'tcx>>,
}Fields
infcx: &'a InferCtxt<'a, 'tcx>body_id: HirIdparam_env: ParamEnv<'tcx>value_span: Spanobligations: Vec<PredicateObligation<'tcx>>Implementations
sourceimpl<'a, 'tcx> Instantiator<'a, 'tcx>
impl<'a, 'tcx> Instantiator<'a, 'tcx>
fn instantiate_opaque_types_in_map<T: TypeFoldable<'tcx>>(
&mut self,
value: T
) -> T
fn fold_opaque_ty(
&mut self,
ty: Ty<'tcx>,
opaque_type_key: OpaqueTypeKey<'tcx>,
origin: OpaqueTyOrigin
) -> Ty<'tcx>
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for Instantiator<'a, 'tcx>
impl<'a, 'tcx> !Send for Instantiator<'a, 'tcx>
impl<'a, 'tcx> !Sync for Instantiator<'a, 'tcx>
impl<'a, 'tcx> Unpin for Instantiator<'a, 'tcx> where
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for Instantiator<'a, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 56 bytes