Struct ftd::InterpreterState
source · [−]pub struct InterpreterState {
pub id: String,
pub bag: Map<Thing>,
pub document_stack: Vec<ParsedDocument>,
pub parsed_libs: Map<Vec<String>>,
}
Fields
id: String
bag: Map<Thing>
document_stack: Vec<ParsedDocument>
parsed_libs: Map<Vec<String>>
Implementations
sourceimpl InterpreterState
impl InterpreterState
pub fn tdoc<'a>(
&'a self,
local_variables: &'a mut Map<Thing>,
referenced_local_variables: &'a mut Map<String>
) -> TDoc<'a>
pub fn add_foreign_variable_prefix(&mut self, module: &str, prefix: Vec<String>)
pub fn continue_after_import(self, id: &str, source: &str) -> Result<Interpreter>
pub fn continue_after_variable(
self,
variable: &str,
value: Value
) -> Result<Interpreter>
pub fn continue_after_pop(self) -> Result<Interpreter>
pub fn continue_after_processor(
self,
p1: &Section,
value: Value
) -> Result<Interpreter>
Trait Implementations
sourceimpl Debug for InterpreterState
impl Debug for InterpreterState
sourceimpl Default for InterpreterState
impl Default for InterpreterState
sourcefn default() -> InterpreterState
fn default() -> InterpreterState
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for InterpreterState
impl Send for InterpreterState
impl Sync for InterpreterState
impl Unpin for InterpreterState
impl UnwindSafe for InterpreterState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more