[−][src]Struct rustc_mir::util::def_use::DefUseAnalysis

pub struct DefUseAnalysis {
    info: IndexVec<Local, Info>,
}

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]

pub fn replace_all_defs_and_uses_with<'tcx>(
    &self,
    local: Local,
    body: &mut Body<'tcx>,
    new_local: Local,
    tcx: TyCtxt<'tcx>
)
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]