pub trait GenericArgsExt {
// Required methods
fn box_args(&self) -> (&Ty, &GenericArg);
fn to_rustc<'tcx>(&self, tcx: TyCtxt<'tcx>) -> GenericArgsRef<'tcx>;
fn rebase_onto(
&self,
tcx: &TyCtxt<'_>,
source_ancestor: DefId,
target_args: &GenericArgs,
) -> List<GenericArg>;
}Required Methods§
fn box_args(&self) -> (&Ty, &GenericArg)
fn to_rustc<'tcx>(&self, tcx: TyCtxt<'tcx>) -> GenericArgsRef<'tcx>
fn rebase_onto( &self, tcx: &TyCtxt<'_>, source_ancestor: DefId, target_args: &GenericArgs, ) -> List<GenericArg>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".