Struct add_ed::Ed [−][src]
pub struct Ed<'a, B: Buffer> { /* fields omitted */ }
Expand description
The state variable used by the editor to track its internal state
Implementations
Construct a new instance of Ed
- An empty file string is recommended if no filepath is opened
- Note that you can initialise the buffer with contents before this
Run the given command
Returns true if the command was to quit
Run given instance of Ed until it receives a command to quit or errors
The returned error type could be improved, suggestions welcome.