Struct rustc_hir_analysis::astconv::SubstsForAstPathCtxt
source · struct SubstsForAstPathCtxt<'a, 'tcx> {
astconv: &'a (dyn AstConv<'tcx> + 'a),
def_id: DefId,
generic_args: &'a GenericArgs<'a>,
span: Span,
inferred_params: Vec<Span>,
infer_args: bool,
}Fields§
§astconv: &'a (dyn AstConv<'tcx> + 'a)§def_id: DefId§generic_args: &'a GenericArgs<'a>§span: Span§inferred_params: Vec<Span>§infer_args: boolTrait Implementations§
source§impl<'a, 'tcx> CreateSubstsForGenericArgsCtxt<'a, 'tcx> for SubstsForAstPathCtxt<'a, 'tcx>
impl<'a, 'tcx> CreateSubstsForGenericArgsCtxt<'a, 'tcx> for SubstsForAstPathCtxt<'a, 'tcx>
fn args_for_def_id(&mut self, did: 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 SubstsForAstPathCtxt<'a, 'tcx>
impl<'a, 'tcx> !Send for SubstsForAstPathCtxt<'a, 'tcx>
impl<'a, 'tcx> !Sync for SubstsForAstPathCtxt<'a, 'tcx>
impl<'a, 'tcx> Unpin for SubstsForAstPathCtxt<'a, 'tcx>where
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for SubstsForAstPathCtxt<'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: 72 bytes