Macros§
- A macro for reading and parsing input from stdin, returning
Option<T>
. - A macro for reading and parsing input from stdin that does not handle EOF gracefully.
- A macro for reading and parsing input from stdin, returning
Option<T>
, but prints the prompt (if any) on its own line.
Enums§
- A custom error type for input operations that can represent I/O or parse errors.
Functions§
- Reads and parses a single line from stdin into a desired type
T
. - Reads one line from stdin and attempts to parse it into
T
. ReturnsOk(None)
if EOF is reached. - Like
read_and_parse
, but prints a prompt before reading. - Like
read_and_parse_with_eof
, but prints a prompt before reading input.