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§
Source§impl Default for RecordedProgram
impl Default for RecordedProgram
Source§fn default() -> RecordedProgram
fn default() -> RecordedProgram
Returns the “default value” for a type. Read more
Source§impl Program for RecordedProgram
impl Program for RecordedProgram
Source§fn 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
).Source§fn edit<'life0, 'life1, 'async_trait>(
&'life0 mut self,
console: &'life1 mut dyn Console,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Edits the program interactively via the given
console
.Source§fn 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
.Auto Trait Implementations§
impl Freeze for RecordedProgram
impl RefUnwindSafe for RecordedProgram
impl Send for RecordedProgram
impl Sync for RecordedProgram
impl Unpin for RecordedProgram
impl UnwindSafe for RecordedProgram
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