pub struct Machine { /* private fields */ }
Implementations
sourceimpl Machine
impl Machine
pub fn new() -> Self
pub fn load_variable_storage(
&mut self,
filename: &str
) -> Result<(), Box<dyn Error>>
pub fn save_variable_storage(
&mut self,
filename: &str
) -> Result<(), Box<dyn Error>>
pub fn get_mut_variable_storage(&mut self) -> &mut VariableStorage
pub fn get_variable_storage(&self) -> &VariableStorage
pub fn get_mut_function_table(&mut self) -> &mut FunctionTable
pub fn get_function_table(&self) -> &FunctionTable
pub fn call_function(
&mut self,
name: &str,
argc: u16,
stack: &mut VariableStack
) -> bool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Machine
impl !Send for Machine
impl !Sync for Machine
impl Unpin for Machine
impl !UnwindSafe for Machine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more