Struct FlowAnalysis

Source
pub struct FlowAnalysis<'tcx, 'a> {
    rcx: &'a mut rCanary<'tcx>,
    fn_set: HashSet<DefId>,
}

Fields§

§rcx: &'a mut rCanary<'tcx>§fn_set: HashSet<DefId>

Implementations§

Source§

impl<'tcx, 'a> FlowAnalysis<'tcx, 'a>

Source

pub fn inter_run(&mut self)

Source§

impl<'tcx, 'a> FlowAnalysis<'tcx, 'a>

Source

pub fn intra_run(&mut self)

Source§

impl<'tcx, 'a> FlowAnalysis<'tcx, 'a>

Source

pub fn order(&mut self)

Source§

impl<'tcx, 'a> FlowAnalysis<'tcx, 'a>

Source

pub fn new(rcx: &'a mut rCanary<'tcx>) -> Self

Source

pub fn fn_set(&self) -> &HashSet<DefId>

Source

pub fn fn_set_mut(&mut self) -> &mut HashSet<DefId>

Source

pub fn mir_graph(&self) -> &MirGraph

Source

pub fn mir_graph_mut(&mut self) -> &mut MirGraph

Source

pub fn start(&mut self)

Trait Implementations§

Source§

impl<'tcx, 'o, 'a> RcxMut<'tcx, 'o, 'a> for FlowAnalysis<'tcx, 'a>

Source§

fn rcx(&'o self) -> &'o rCanary<'tcx>

Source§

fn rcx_mut(&'o mut self) -> &'o mut rCanary<'tcx>

Source§

fn tcx(&'o self) -> TyCtxt<'tcx>

Auto Trait Implementations§

§

impl<'tcx, 'a> Freeze for FlowAnalysis<'tcx, 'a>

§

impl<'tcx, 'a> !RefUnwindSafe for FlowAnalysis<'tcx, 'a>

§

impl<'tcx, 'a> !Send for FlowAnalysis<'tcx, 'a>

§

impl<'tcx, 'a> !Sync for FlowAnalysis<'tcx, 'a>

§

impl<'tcx, 'a> Unpin for FlowAnalysis<'tcx, 'a>

§

impl<'tcx, 'a> !UnwindSafe for FlowAnalysis<'tcx, 'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.