[−][src]Struct garnish_lang_runtime::ExpressionRuntime
Methods
impl ExpressionRuntime
[src]
pub fn execute_with_context<T>(
&mut self,
start: String,
context: &T
) -> Result<ExpressionResult> where
T: ExpressionContext,
[src]
&mut self,
start: String,
context: &T
) -> Result<ExpressionResult> where
T: ExpressionContext,
pub fn execute<T>(&mut self, start: T) -> Result<ExpressionResult> where
T: ToString,
[src]
T: ToString,
pub fn next_instruction(&self) -> Result<Instruction>
[src]
impl ExpressionRuntime
[src]
pub fn set_input(&mut self, value: &ExpressionValue) -> Result
[src]
impl ExpressionRuntime
[src]
pub fn instruction_iter<'a, T>(
&'a mut self,
start: String,
context: &'a T
) -> Result<InstructionIter<'a, T>, String> where
T: ExpressionContext,
[src]
&'a mut self,
start: String,
context: &'a T
) -> Result<InstructionIter<'a, T>, String> where
T: ExpressionContext,
impl ExpressionRuntime
[src]
pub fn perform_iterate_to_result(&mut self, single_result: bool) -> Result
[src]
impl ExpressionRuntime
[src]
pub fn get_result(&self, index: usize) -> Result<Option<ExpressionResult>>
[src]
impl ExpressionRuntime
[src]
pub fn new<T: InstructionSet>(instructions: &T) -> ExpressionRuntime
[src]
Trait Implementations
impl Clone for ExpressionRuntime
[src]
fn clone(&self) -> ExpressionRuntime
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ExpressionValueConsumer for ExpressionRuntime
[src]
fn insert_at_value_cursor(&mut self, data: u8) -> Result
[src]
fn insert_all_at_value_cursor(&mut self, data: &[u8]) -> Result
[src]
fn insert_at_ref_cursor(&mut self, r: usize)
[src]
fn get_value_cursor(&self) -> usize
[src]
fn get_data_mut(&mut self) -> &mut Vec<u8>
[src]
fn get_symbol_table_mut(&mut self) -> &mut HashMap<String, usize>
[src]
fn get_expression_table_mut(&mut self) -> &mut Vec<usize>
[src]
fn get_expression_map_mut(&mut self) -> &mut HashMap<String, usize>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExpressionRuntime
impl Send for ExpressionRuntime
impl Sync for ExpressionRuntime
impl Unpin for ExpressionRuntime
impl UnwindSafe for ExpressionRuntime
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CopyValue for T where
T: ExpressionValueConsumer,
[src]
T: ExpressionValueConsumer,
fn copy_value(&mut self, value: &ExpressionValue) -> Result<(), Error>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,