[][src]Module scrawl::editor

Editor

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

Structs

ContentState

State machine type marker. Holds the contents of the string that the text buffer will be seeded with.

EditFileState

State machine type marker. Holds the file that will be edited.

Editor

The Editor struct allows setting up the editor before opening it. Useful for setting things like a file extension for syntax highlighting, or specifying a specific editor and more.

FileState

State machine type marker. Holds the path of the file that the text buffer will be seeded with.

InitialState

State machine type marker. Initial state of the editor.

Traits

EditorState

Marker trait used to ensure valid state transitions.

Functions

new

Returns a new Editor struct