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§

Returns the “default value” for a type. Read more
Returns true if the program was modified since it was last saved (as indicated by a call to set_name).
Edits the program interactively via the given console.
Reloads the contents of the stored program with the given text and tracks them as coming from the file given in name.
Path of the loaded program. Should be None if the program has never been saved yet.
Resets the name of the program. Used when saving it.
Gets the contents of the stored program as a single string.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.