[−][src]Struct rustc_mir::util::def_use::DefUseAnalysis
Fields
info: IndexVec<Local, Info>Implementations
impl DefUseAnalysis[src]
pub fn new(body: &Body<'_>) -> DefUseAnalysis[src]
pub fn analyze(&mut self, body: &Body<'_>)[src]
fn clear(&mut self)[src]
pub fn local_info(&self, local: Local) -> &Info[src]
fn mutate_defs_and_uses<'tcx>(
&self,
local: Local,
body: &mut Body<'tcx>,
new_local: Local,
tcx: TyCtxt<'tcx>
)[src]
&self,
local: Local,
body: &mut Body<'tcx>,
new_local: Local,
tcx: TyCtxt<'tcx>
)
pub fn replace_all_defs_and_uses_with<'tcx>(
&self,
local: Local,
body: &mut Body<'tcx>,
new_local: Local,
tcx: TyCtxt<'tcx>
)[src]
&self,
local: Local,
body: &mut Body<'tcx>,
new_local: Local,
tcx: TyCtxt<'tcx>
)
Auto Trait Implementations
impl RefUnwindSafe for DefUseAnalysis
impl Send for DefUseAnalysis
impl Sync for DefUseAnalysis
impl Unpin for DefUseAnalysis
impl UnwindSafe for DefUseAnalysis
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.