[][src]Struct rustc_mir::dataflow::Results

pub struct Results<'tcx, A> where
    A: Analysis<'tcx>, 
{ pub analysis: A, pub(in dataflow::framework) entry_sets: IndexVec<BasicBlock, A::Domain>, }

A dataflow analysis that has converged to fixpoint.

Fields

analysis: Aentry_sets: IndexVec<BasicBlock, A::Domain>

Implementations

impl<A, 'tcx> Results<'tcx, A> where
    A: Analysis<'tcx>, 
[src]

pub fn into_results_cursor<'mir>(
    self,
    body: &'mir Body<'tcx>
) -> ResultsCursor<'mir, 'tcx, A>
[src]

Creates a ResultsCursor that can inspect these Results.

pub fn entry_set_for_block(&self, block: BasicBlock) -> &A::Domain[src]

Gets the dataflow state for the given block.

pub fn visit_with<'mir>(
    &self,
    body: &'mir Body<'tcx>,
    blocks: impl IntoIterator<Item = BasicBlock>,
    vis: &mut impl ResultsVisitor<'mir, 'tcx, FlowState = A::Domain>
)
[src]

pub fn visit_reachable_with<'mir>(
    &self,
    body: &'mir Body<'tcx>,
    vis: &mut impl ResultsVisitor<'mir, 'tcx, FlowState = A::Domain>
)
[src]

Trait Implementations

impl<'tcx, A> ResultsVisitable<'tcx> for Results<'tcx, A> where
    A: Analysis<'tcx>, 
[src]

type FlowState = A::Domain

type Direction = A::Direction

Auto Trait Implementations

impl<'tcx, A> RefUnwindSafe for Results<'tcx, A> where
    A: RefUnwindSafe,
    <A as AnalysisDomain<'tcx>>::Domain: RefUnwindSafe

impl<'tcx, A> Send for Results<'tcx, A> where
    A: Send,
    <A as AnalysisDomain<'tcx>>::Domain: Send

impl<'tcx, A> Sync for Results<'tcx, A> where
    A: Sync,
    <A as AnalysisDomain<'tcx>>::Domain: Sync

impl<'tcx, A> Unpin for Results<'tcx, A> where
    A: Unpin,
    <A as AnalysisDomain<'tcx>>::Domain: Unpin

impl<'tcx, A> UnwindSafe for Results<'tcx, A> where
    A: UnwindSafe,
    <A as AnalysisDomain<'tcx>>::Domain: UnwindSafe

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]