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.

Get an immutable reference to part of the editors state

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.

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.