Struct rustc_hir_typeck::fn_ctxt::_impl::CreateCtorSubstsContext
source · struct CreateCtorSubstsContext<'a, 'tcx> {
fcx: &'a FnCtxt<'a, 'tcx>,
span: Span,
path_segs: &'a [PathSeg],
infer_args_for_err: &'a FxHashSet<usize>,
segments: &'a [PathSegment<'a>],
}Fields§
§fcx: &'a FnCtxt<'a, 'tcx>§span: Span§path_segs: &'a [PathSeg]§infer_args_for_err: &'a FxHashSet<usize>§segments: &'a [PathSegment<'a>]Trait Implementations§
source§impl<'tcx, 'a> CreateSubstsForGenericArgsCtxt<'a, 'tcx> for CreateCtorSubstsContext<'a, 'tcx>
impl<'tcx, 'a> CreateSubstsForGenericArgsCtxt<'a, 'tcx> for CreateCtorSubstsContext<'a, 'tcx>
fn args_for_def_id(
&mut self,
def_id: DefId
) -> (Option<&'a GenericArgs<'a>>, bool)
fn provided_kind(
&mut self,
param: &GenericParamDef,
arg: &GenericArg<'_>
) -> GenericArg<'tcx>
fn inferred_kind(
&mut self,
substs: Option<&[GenericArg<'tcx>]>,
param: &GenericParamDef,
infer_args: bool
) -> GenericArg<'tcx>
Auto Trait Implementations§
impl<'a, 'tcx> !RefUnwindSafe for CreateCtorSubstsContext<'a, 'tcx>
impl<'a, 'tcx> !Send for CreateCtorSubstsContext<'a, 'tcx>
impl<'a, 'tcx> !Sync for CreateCtorSubstsContext<'a, 'tcx>
impl<'a, 'tcx> Unpin for CreateCtorSubstsContext<'a, 'tcx>where
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for CreateCtorSubstsContext<'a, '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: 56 bytes