Struct rupta::builder::substs_specializer::SubstsSpecializer
source · pub struct SubstsSpecializer<'tcx> {
pub tcx: TyCtxt<'tcx>,
pub generic_args: Vec<GenericArgE<'tcx>>,
pub closures_being_specialized: RefCell<HashSet<DefId>>,
}Fields§
§tcx: TyCtxt<'tcx>§generic_args: Vec<GenericArgE<'tcx>>§closures_being_specialized: RefCell<HashSet<DefId>>Implementations§
source§impl<'tcx> SubstsSpecializer<'tcx>
impl<'tcx> SubstsSpecializer<'tcx>
pub fn new( tcx: TyCtxt<'tcx>, generic_args: Vec<GenericArgE<'tcx>> ) -> SubstsSpecializer<'tcx>
pub fn specialize_generic_args( &self, args: GenericArgsRef<'tcx> ) -> GenericArgsRef<'tcx>
pub fn specialize_generic_argument_type( &self, gen_arg_type: Ty<'tcx> ) -> Ty<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for SubstsSpecializer<'tcx>
impl<'tcx> !Send for SubstsSpecializer<'tcx>
impl<'tcx> !Sync for SubstsSpecializer<'tcx>
impl<'tcx> Unpin for SubstsSpecializer<'tcx>
impl<'tcx> !UnwindSafe for SubstsSpecializer<'tcx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more