[][src]Struct gf::code::dfa::ConcreteExecutor

pub struct ConcreteExecutor<'a, I: Interp<Forward>> { /* fields omitted */ }

Executor that follows a concrete execution.

The concrete executor is an iterator and must to be polled to make progress.

Methods

impl<'a, I: Interp<Forward>> ConcreteExecutor<'a, I>[src]

pub fn new(
    module: &'a Sealed<Module>,
    interp: &'a I,
    initial_state: I::State,
    initial_loc: StatementLoc
) -> Self
[src]

Create a concrete executor for given initial state and initial location in a module.

pub fn loc(&self) -> Option<StatementLoc>[src]

Return the current location.

The location may either be a location before a statement or at the end of a basic block, i.e. just after its last statement.

pub fn state(&self) -> Option<&I::State>[src]

Return a shared reference to the current state.

pub fn state_mut(&mut self) -> Option<&mut I::State>[src]

Return a mutable reference to the current state.

Trait Implementations

impl<'a, I: Interp<Forward>> Iterator for ConcreteExecutor<'a, I>[src]

type Item = StatementLoc

The type of the elements being iterated over.

impl<'a, I: Clone + Interp<Forward>> Clone for ConcreteExecutor<'a, I> where
    I::State: Clone
[src]

impl<'a, I: Debug + Interp<Forward>> Debug for ConcreteExecutor<'a, I> where
    I::State: Debug
[src]

impl<'a, I: Interp<Forward>> FusedIterator for ConcreteExecutor<'a, I>[src]

Auto Trait Implementations

impl<'a, I> Send for ConcreteExecutor<'a, I> where
    I: Sync,
    <I as Interp<Forward>>::State: Send

impl<'a, I> Sync for ConcreteExecutor<'a, I> where
    I: Sync,
    <I as Interp<Forward>>::State: Sync

impl<'a, I> Unpin for ConcreteExecutor<'a, I> where
    <I as Interp<Forward>>::State: Unpin

impl<'a, I> UnwindSafe for ConcreteExecutor<'a, I> where
    I: RefUnwindSafe,
    <I as Interp<Forward>>::State: UnwindSafe

impl<'a, I> RefUnwindSafe for ConcreteExecutor<'a, I> where
    I: RefUnwindSafe,
    <I as Interp<Forward>>::State: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]