pub struct rCanary<'tcx> {
tcx: TyCtxt<'tcx>,
adt_owner: AdtOwner,
mir_graph: MirGraph,
}
Fields§
§tcx: TyCtxt<'tcx>
§adt_owner: AdtOwner
§mir_graph: MirGraph
Implementations§
Source§impl<'tcx> rCanary<'tcx>
impl<'tcx> rCanary<'tcx>
pub fn new(tcx: TyCtxt<'tcx>, adt_owner: AdtOwner) -> Self
pub fn start(&mut self)
pub fn tcx(&self) -> TyCtxt<'tcx>
pub fn adt_owner(&self) -> &AdtOwner
pub fn adt_owner_mut(&mut self) -> &mut AdtOwner
pub fn mir_graph(&self) -> &MirGraph
pub fn mir_graph_mut(&mut self) -> &mut MirGraph
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> Freeze for rCanary<'tcx>
impl<'tcx> !RefUnwindSafe for rCanary<'tcx>
impl<'tcx> !Send for rCanary<'tcx>
impl<'tcx> !Sync for rCanary<'tcx>
impl<'tcx> Unpin for rCanary<'tcx>
impl<'tcx> !UnwindSafe for rCanary<'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