Struct endbasic_std::testutils::RecordedProgram
source · [−]pub struct RecordedProgram { /* private fields */ }Expand description
A stored program that exposes golden contents and accepts new content from the console when edits are requested.
Trait Implementations
sourceimpl Default for RecordedProgram
impl Default for RecordedProgram
sourcefn default() -> RecordedProgram
fn default() -> RecordedProgram
Returns the “default value” for a type. Read more
sourceimpl Program for RecordedProgram
impl Program for RecordedProgram
sourcefn is_dirty(&self) -> bool
fn is_dirty(&self) -> bool
Returns true if the program was modified since it was last saved (as indicated by a call to
set_name). Read more
sourcefn 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 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,
Edits the program interactively via the given console.
sourcefn load(&mut self, name: Option<&str>, text: &str)
fn load(&mut self, name: Option<&str>, text: &str)
Reloads the contents of the stored program with the given text and tracks them as coming
from the file given in name. Read more
Auto Trait Implementations
impl RefUnwindSafe for RecordedProgram
impl Send for RecordedProgram
impl Sync for RecordedProgram
impl Unpin for RecordedProgram
impl UnwindSafe for RecordedProgram
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more