pub struct Editor { /* private fields */ }
Expand description

An interactive console-based text editor.

The text editor owns the textual contents it is editing.

Trait Implementations

Creates a new editor without any stored contents.

Returns true if the program was modified since it was last saved (as indicated by a call to set_name). Read more

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. Read more

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more