[−][src]Trait endbasic_core::program::Program
Representation of the single program that we can keep in memory.
Required methods
#[must_use]pub fn edit<'life0, 'life1, 'async_trait>(
&'life0 mut self,
console: &'life1 mut dyn Console
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
console: &'life1 mut dyn Console
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Edits the program interactively via the given console
.
pub fn load(&mut self, text: &str)
[src]
Reloads the contents of the stored program with the given text
.
pub fn text(&self) -> String
[src]
Gets the contents of the stored program as a single string.