Trait endbasic_std::store::Program[][src]

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

Representation of the single program that we can keep in memory.

Required methods

#[must_use]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.

fn load(&mut self, text: &str)[src]

Reloads the contents of the stored program with the given text.

fn text(&self) -> String[src]

Gets the contents of the stored program as a single string.

Loading content...

Implementors

impl Program for RecordedProgram[src]

Loading content...