Struct rustyline::config::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

Configuration builder

Implementations§

Set the maximum length for the history.

Tell if lines which match the previous history entry are saved or not in the history list.

By default, they are ignored.

Tell if lines which begin with a space character are saved or not in the history list.

By default, they are saved.

Set completion_type.

The number of possible completions that determines when the user is asked whether the list of possibilities should be displayed.

Timeout for ambiguous key sequences in milliseconds. Currently, it is used only to distinguish a single ESC from an ESC sequence. After seeing an ESC key, wait at most keyseq_timeout_ms for another byte.

Choose between Emacs or Vi mode.

Tell if lines are automatically added to the history.

By default, they are not.

Forces colorization on or off.

By default, colorization is on except if stdout is not a TTY.

Whether to use stdout or stderr.

Be default, use stdout

Trait Implementations§

Set the maximum length for the history.
Tell if lines which match the previous history entry are saved or not in the history list. Read more
Tell if lines which begin with a space character are saved or not in the history list. Read more
Set completion_type.
The number of possible completions that determines when the user is asked whether the list of possibilities should be displayed. Read more
Timeout for ambiguous key sequences in milliseconds.
Choose between Emacs or Vi mode.
Tell if lines are automatically added to the history. Read more
Forces colorization on or off. Read more
Whether to use stdout or stderr Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.