[][src]Struct gf::ai::executor::PathExecutorState

pub struct PathExecutorState<'a, D, I> where
    D: Direction,
    I: Interp<'a, D>, 
{ pub loc: Loc<'a>, pub interp_state: I::State, }

🟢 State of a PathExecutor.

Fields

loc: Loc<'a>

Current location.

interp_state: I::State

Current interpretation state.

Implementations

impl<'a, D, I> PathExecutorState<'a, D, I> where
    D: Direction,
    I: Interp<'a, D>, 
[src]

pub fn stmt(&mut self, interp: &I, stmt: Stmt<'a>)[src]

Propagate state across a non-CALL statement.

Errors

  • Panics if statement location does not match state location.
  • Panics if the statement is a CALL.

Trait Implementations

impl<'a, D: Clone, I: Clone> Clone for PathExecutorState<'a, D, I> where
    D: Direction,
    I: Interp<'a, D>,
    I::State: Clone
[src]

impl<'a, D: Copy, I: Copy> Copy for PathExecutorState<'a, D, I> where
    D: Direction,
    I: Interp<'a, D>,
    I::State: Copy
[src]

Auto Trait Implementations

impl<'a, D, I> RefUnwindSafe for PathExecutorState<'a, D, I> where
    <I as Interp<'a, D>>::State: RefUnwindSafe

impl<'a, D, I> Send for PathExecutorState<'a, D, I> where
    <I as Interp<'a, D>>::State: Send

impl<'a, D, I> Sync for PathExecutorState<'a, D, I> where
    <I as Interp<'a, D>>::State: Sync

impl<'a, D, I> Unpin for PathExecutorState<'a, D, I> where
    <I as Interp<'a, D>>::State: Unpin

impl<'a, D, I> UnwindSafe for PathExecutorState<'a, D, I> where
    <I as Interp<'a, D>>::State: 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> 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.