Crate quick_input

Source
Expand description

§Quick Input

This lightweight library offers a quick and easy way of handling user input, which can then be assigned to a variable directly. All functions handle the possibility of invalid values by looping until the desired type is inputted.

Both an initial prompt message and error message are customisable and optional. If the error message is left empty (None), a default error message will be displayed (relaying on the default message should be avoided when possible).

§Author

  • Kevin Claramonte Soler (kevclasol@proton.me).
  • 16/03/2025

Macros§

read_i32
read_string

Functions§

read_bool
ARGUMENTS
read_char
ARGUMENTS
read_char_no_msg
DESCRIPTION
read_f32
ARGUMENTS
read_f64
ARGUMENTS
read_f64_def_err
ARGUMENTS
read_i8
ARGUMENTS
read_i16
ARGUMENTS
read_i32Deprecated
ARGUMENTS
read_i64
ARGUMENTS
read_i32_def_err
ARGUMENTS
read_i128
ARGUMENTS
read_isize
ARGUMENTS
read_stringDeprecated
ARGUMENTS
read_string_no_msg
DESCRIPTION
read_string_untrimmed
ARGUMENTS
read_u8
ARGUMENTS
read_u16
ARGUMENTS
read_u32
ARGUMENTS
read_u64
ARGUMENTS
read_u32_def_err
ARGUMENTS
read_u128
ARGUMENTS
read_usize
ARGUMENTS