Crate interviewer

Source

Structs§

EDITOR
Allows direct modifications of rustyline::Editor. Stored as Arc<Mutex<Option<rustyline::Editor<()>>>>.

Enums§

InterviewError
Separator
Enum for specifying separators for ask_many and its variations.

Traits§

Askable
Base trait for all types that can be asked for input.

Functions§

ask
Ask the user for a value of type T.
ask_many
Ask the user for multiple values of type T separated by delimiter.
ask_many_opt
Ask the user for multiple values of type T. The user is prompted repeatedly until all values can be parsed. Shortcircuits if the user enters an empty string
ask_many_opt_lazy
Ask the user for multiple values of type T. Unparseable values are represented as None.
ask_many_until
Ask the user for multiple values of type T. The user is prompted repeatedly until all values are parseable.
ask_opt
Ask the user for a value of type T. The user is prompted repeatedly until a valid value is provided. Shortcircuits if the user enters an empty string.
ask_until
Ask the user for a value of type T. The user is prompted repeatedly until a valid value is provided.
set_consumable_quotes
Modifies the behaviour of quotes (“”) inside ask_many.

Type Aliases§

Result
Result wrapper containing InterviewError.