read_user_input

Function read_user_input 

fn read_user_input<I: Input>(input: &mut I) -> Result<Option<String>, Error>
Expand description

Read user input from stdin

§Arguments

  • input - The Input trait object for reading from stdin

§Returns

  • Ok(Some(input)) - User provided input
  • Ok(None) - User wants to exit (empty input or “exit”)
  • Err(error) - Error reading input