[][src]Struct lark_eval::EvalState

pub struct EvalState {
    pub variables: HashMap<Variable, Vec<Value>>,
    pub skip_until: Option<Expression>,
    pub current_expression: Option<Expression>,
    pub is_repl: bool,
}

Fields

variables: HashMap<Variable, Vec<Value>>skip_until: Option<Expression>current_expression: Option<Expression>is_repl: bool

Methods

impl EvalState[src]

pub fn create_variable(&mut self, variable: Variable)[src]

pub fn pop_variable(&mut self, variable: Variable)[src]

pub fn assign_to_variable(&mut self, variable: Variable, value: Value)[src]

pub fn new() -> EvalState[src]

pub fn set_current_expression(&mut self, expression: Expression)[src]

pub fn ready_to_execute(&self) -> bool[src]

Auto Trait Implementations

impl Send for EvalState

impl Sync for EvalState

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T