pub struct Machine { /* private fields */ }Expand description
Executes an EndBASIC program and tracks its state.
Implementations§
Source§impl Machine
impl Machine
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Resets the state of the machine by clearing all variables.
This clears the runtime state (variables, heap, last error), resets the compiler’s symbol table, and starts with a fresh image. The net effect is equivalent to starting a new machine session: all user variables and compiled bytecode are gone, but registered callables remain.
Sourcepub fn drain_signals(&mut self)
pub fn drain_signals(&mut self)
Consumes any pending signals so they don’t affect future executions.
Auto Trait Implementations§
impl Freeze for Machine
impl !RefUnwindSafe for Machine
impl !Send for Machine
impl !Sync for Machine
impl !Unpin for Machine
impl !UnsafeUnpin for Machine
impl !UnwindSafe for Machine
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