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§
Source§impl 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§
Source§impl Debug for InterpreterState
impl Debug for InterpreterState
Source§impl Default for InterpreterState
impl Default for InterpreterState
Source§fn default() -> InterpreterState
fn default() -> InterpreterState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InterpreterState
impl RefUnwindSafe for InterpreterState
impl Send for InterpreterState
impl Sync for InterpreterState
impl Unpin for InterpreterState
impl UnwindSafe for InterpreterState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more