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

pub struct ShortCircuitPreorder<'a, 'tcx, F: Fn(&'tcx &'a Body<'tcx>, &'tcx TerminatorKind<'tcx>) -> Box<dyn Iterator<Item = &'a BasicBlock> + 'a>> {
    body: &'tcx &'a Body<'tcx>,
    visited: BitSet<BasicBlock>,
    worklist: Vec<BasicBlock>,
    filtered_successors: F,
}

Fields

body: &'tcx &'a Body<'tcx>visited: BitSet<BasicBlock>worklist: Vec<BasicBlock>filtered_successors: F

Implementations

impl<'a, 'tcx, F: Fn(&'tcx &'a Body<'tcx>, &'tcx TerminatorKind<'tcx>) -> Box<dyn Iterator<Item = &'a BasicBlock> + 'a>> ShortCircuitPreorder<'a, 'tcx, F>[src]

pub fn new(
    body: &'tcx &'a Body<'tcx>,
    filtered_successors: F
) -> ShortCircuitPreorder<'a, 'tcx, F>ⓘ

Notable traits for ShortCircuitPreorder<'a, 'tcx, F>

impl<'a: 'tcx, 'tcx, F: Fn(&'tcx &'a Body<'tcx>, &'tcx TerminatorKind<'tcx>) -> Box<dyn Iterator<Item = &'a BasicBlock> + 'a>> Iterator for ShortCircuitPreorder<'a, 'tcx, F> type Item = (BasicBlock, &'a BasicBlockData<'tcx>);
[src]

Trait Implementations

impl<'a: 'tcx, 'tcx, F: Fn(&'tcx &'a Body<'tcx>, &'tcx TerminatorKind<'tcx>) -> Box<dyn Iterator<Item = &'a BasicBlock> + 'a>> Iterator for ShortCircuitPreorder<'a, 'tcx, F>[src]

type Item = (BasicBlock, &'a BasicBlockData<'tcx>)

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, 'tcx, F> !RefUnwindSafe for ShortCircuitPreorder<'a, 'tcx, F>

impl<'a, 'tcx, F> !Send for ShortCircuitPreorder<'a, 'tcx, F>

impl<'a, 'tcx, F> !Sync for ShortCircuitPreorder<'a, 'tcx, F>

impl<'a, 'tcx, F> Unpin for ShortCircuitPreorder<'a, 'tcx, F> where
    F: Unpin,
    'a: 'tcx, 

impl<'a, 'tcx, F> !UnwindSafe for ShortCircuitPreorder<'a, 'tcx, F>

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<I> IntoIterator for I where
    I: Iterator, 
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Itertools for T where
    T: Iterator + ?Sized, 
[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]