[][src]Crate simple_input

Simple Input

simple_input provides a simple way to ask for user input, inspired by Python's input function.

extern crate simple_input;
use simple_input::input;
 
fn main() {
    let name = input("What is your name? ");
    println!("Hello {}!", name);
}

Functions

input

Takes user input, given a prompt.