pub struct Runtime { /* private fields */ }
Expand description
§Virtual machine
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn enter(&mut self, string: &str) -> bool
pub fn enter(&mut self, string: &str) -> bool
Enters a line of BASIC or INPUT. Returns true if good candidate for history.
Sourcepub fn get_listing(&self) -> Listing
pub fn get_listing(&self) -> Listing
Obtain a thread-safe Listing for saving and line completion.
Sourcepub fn set_listing(&mut self, listing: Listing, run: bool)
pub fn set_listing(&mut self, listing: Listing, run: bool)
Set a new listing. Used to load a program.
Sourcepub fn set_prompt(&mut self, prompt: &str)
pub fn set_prompt(&mut self, prompt: &str)
Set a prompt instead of the default “READY.”
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
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