pub struct Interpreter { /* private fields */ }Implementations§
Source§impl Interpreter
impl Interpreter
pub fn new() -> Interpreter
pub fn get_var(&self, key: &str) -> Option<&Value>
pub fn set_var(&mut self, key: &str, value: Value)
pub fn run(&mut self, ctx: &Context) -> Result<Value, Fault>
pub fn step(&mut self, ctx: &Context) -> Result<Status, Fault>
pub fn common_ancestor(from: &StateID, to: &StateID) -> StateID
pub fn exit_states(from: &StateID, to: &StateID) -> Vec<StateID> ⓘ
pub fn entry_states(from: &StateID, to: &StateID) -> Vec<StateID> ⓘ
Auto Trait Implementations§
impl Freeze for Interpreter
impl RefUnwindSafe for Interpreter
impl Send for Interpreter
impl Sync for Interpreter
impl Unpin for Interpreter
impl UnwindSafe for Interpreter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more