Struct repl_rs::Repl[][src]

pub struct Repl<Context, E: Display> { /* fields omitted */ }
Expand description

Main REPL struct

Implementations

Create a new Repl with the given context’s initial value.

Give your Repl a name. This is used in the help summary for the Repl.

Give your Repl a version. This is used in the help summary for the Repl.

Give your Repl a description. This is used in the help summary for the Repl.

Give your Repl a custom prompt. The default prompt is the Repl name, followed by a >, all in green, followed by a space.

Pass in a custom help viewer

Pass in a custom error handler. This is really only for testing - the default error handler simply prints the error to stderr and then returns

Add a command to your REPL

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.