Struct rustyline::config::Builder[][src]

pub struct Builder { /* fields omitted */ }
Expand description

Configuration builder

Implementations

Returns a Config builder.

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.

Set bell style: beep, flash or nothing.

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

Horizontal space taken by a tab.

By default, 8

Builds a Config with the settings specified so far.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Config accessor.

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

Set bell style: beep, flash or nothing.

Forces colorization on or off. Read more

Whether to use stdout or stderr Read more

Horizontal space taken by a tab. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.