Struct rupta::util::type_util::PointerProjectionsCache
source · pub struct PointerProjectionsCache<'tcx> { /* private fields */ }Expand description
Provides a way to effectively get the pointer type fields of a given type.
Implementations§
source§impl<'tcx> PointerProjectionsCache<'tcx>
impl<'tcx> PointerProjectionsCache<'tcx>
pub fn new() -> PointerProjectionsCache<'tcx>
sourcepub fn get_pointer_projections(
&mut self,
tcx: TyCtxt<'tcx>,
base_ty: Ty<'tcx>
) -> &Vec<(ProjectionElems, Ty<'tcx>)>
pub fn get_pointer_projections( &mut self, tcx: TyCtxt<'tcx>, base_ty: Ty<'tcx> ) -> &Vec<(ProjectionElems, Ty<'tcx>)>
Get or fetch the pointer type fields of the given base ty.
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for PointerProjectionsCache<'tcx>
impl<'tcx> Send for PointerProjectionsCache<'tcx>
impl<'tcx> Sync for PointerProjectionsCache<'tcx>
impl<'tcx> Unpin for PointerProjectionsCache<'tcx>
impl<'tcx> !UnwindSafe for PointerProjectionsCache<'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