Rust is an awesome language but I was totally freaked out by its method of taking input. The code from guess the number is :
println!("Please input your guess.");
let mut guess = String::new();
io::stdin().read_line(&mut guess)
.expect("failed to read line");