Module scrawl::editor

source ·
Expand description

Editor

Struct used to configure the editor before opening and using it.

Structs

Holds the data and implementation for the initial state of the Editor struct.
This is the struct that allows the caller to customize which editor is called, what it is seeded with, and more.
After the user closes their editor, it transforms into a Reader object where the input can be retrieved.
A variant of the Editor struct with a specific command and arguments for the text editor instead of the user’s defaults. This struct is created when an editor is specified.

Enums

Enum for what to seed the editor’s buffer with.

Traits

Used to keep track of which state the Editor struct is in while it’s constructed.

Functions

Creates a new Editor struct, ready for customizing or opening.