struct HeapPropagation<'tcx, 'a> {
tcx: TyCtxt<'tcx>,
heap: HeapOwnership,
unique: HashSet<DefId>,
heap_res: &'a HeapOwnershipResultMap,
}Fields§
§tcx: TyCtxt<'tcx>§heap: HeapOwnership§unique: HashSet<DefId>§heap_res: &'a HeapOwnershipResultMapImplementations§
Source§impl<'tcx, 'a> HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> HeapPropagation<'tcx, 'a>
pub fn new( tcx: TyCtxt<'tcx>, heap: HeapOwnership, heap_res: &'a HeapOwnershipResultMap, ) -> Self
pub fn heap(&self) -> HeapOwnership
pub fn unique_mut(&mut self) -> &mut HashSet<DefId>
pub fn heap_res(&self) -> &'a HeapOwnershipResultMap
Trait Implementations§
Source§impl<'tcx, 'a> Clone for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> Clone for HeapPropagation<'tcx, 'a>
Source§impl<'tcx, 'a> TypeVisitor<TyCtxt<'tcx>> for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> TypeVisitor<TyCtxt<'tcx>> for HeapPropagation<'tcx, 'a>
type Result = ControlFlow<()>
fn visit_ty(&mut self, ty: Ty<'tcx>) -> Self::Result
fn visit_binder<T>(&mut self, t: &Binder<I, T>) -> Self::Resultwhere
T: TypeVisitable<I>,
fn visit_region(&mut self, r: Region<I>) -> Self::Result
fn visit_const(&mut self, c: Const<I>) -> Self::Result
fn visit_predicate<P>(&mut self, p: P) -> Self::Resultwhere
P: PredicateProxy<I>,
fn visit_clauses(&mut self, c: <I as Interner>::Clauses) -> Self::Result
fn visit_error( &mut self, _guar: <I as Interner>::ErrorGuaranteed, ) -> Self::Result
Auto Trait Implementations§
impl<'tcx, 'a> !RefUnwindSafe for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> !Send for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> !Sync for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> !UnwindSafe for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> DynSend for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> DynSync for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> Freeze for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> Unpin for HeapPropagation<'tcx, 'a>
impl<'tcx, 'a> UnsafeUnpin for HeapPropagation<'tcx, 'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more