[][src]Struct gf::code::dfa::concrete::ConcreteState

pub struct ConcreteState { /* fields omitted */ }

Concrete interpretation state.

Methods

impl ConcreteState[src]

pub fn new() -> Self[src]

Create a new concrete state consising of a single default-constructed frame and no-op space states.

pub fn current_frame(&self) -> &ConcreteStateFrame[src]

Return a shared reference to the current frame.

Errors

  • Panics if the frame stack is empty.

pub fn current_frame_mut(&mut self) -> &mut ConcreteStateFrame[src]

Return a mutable reference to the current frame.

Errors

  • Panics if the frame stack is empty.

pub fn push_frame(&mut self)[src]

Push a new frame.

pub fn pop_frame(&mut self) -> ConcreteStateFrame[src]

Pop a frame.

Errors

  • Panics if the frame stack is empty.

pub fn space_state(&self, space: SpaceId) -> Option<&dyn ConcreteSpaceState>[src]

Return a shared reference to a space state.

pub fn space_state_mut(
    &mut self,
    space: SpaceId
) -> Option<&mut dyn ConcreteSpaceState>
[src]

Return a mutable reference to a space state.

pub fn set_space_state(
    &mut self,
    space: SpaceId,
    state: Box<dyn ConcreteSpaceState>
)
[src]

Set a space state.

pub fn var(&self, var: Var) -> Option<&ConcreteStateValue>[src]

Return variable value in the current frame.

Errors

  • Panics if the frame stack is empty.

pub fn set_var(&mut self, var: Var, value: ConcreteStateValue)[src]

Set variable value in the current frame.

Errors

  • Panics if the frame stack is empty.

Trait Implementations

impl Clone for ConcreteState[src]

impl Default for ConcreteState[src]

Auto Trait Implementations

impl !Send for ConcreteState

impl !Sync for ConcreteState

impl Unpin for ConcreteState

impl !UnwindSafe for ConcreteState

impl !RefUnwindSafe for ConcreteState

Blanket Implementations

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

impl<T> From<T> for 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.

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]