[−][src]Struct rustc_mir::transform::coverage::graph::TraversalContext

pub(in transform::coverage) struct TraversalContext {
    pub loop_backedges: Option<(Vec<BasicCoverageBlock>, BasicCoverageBlock)>,
    pub worklist: Vec<BasicCoverageBlock>,
}

Maintains separate worklists for each loop in the BasicCoverageBlock CFG, plus one for the CoverageGraph outside all loops. This supports traversing the BCB CFG in a way that ensures a loop is completely traversed before processing Blocks after the end of the loop.

Fields

loop_backedges: Option<(Vec<BasicCoverageBlock>, BasicCoverageBlock)>

From one or more backedges returning to a loop header.

worklist: Vec<BasicCoverageBlock>

worklist, to be traversed, of CoverageGraph in the loop with the given loop backedges, such that the loop is the inner inner-most loop containing these CoverageGraph

Trait Implementations

impl Debug for TraversalContext[src]

Auto Trait Implementations

impl RefUnwindSafe for TraversalContext

impl Send for TraversalContext

impl Sync for TraversalContext

impl Unpin for TraversalContext

impl UnwindSafe for TraversalContext

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]