[][src]Trait endbasic_core::program::Program

pub trait Program {
#[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
;
pub fn load(&mut self, text: &str);
pub fn text(&self) -> String; }

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]

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.

Loading content...

Implementors

Loading content...