Crates.io | simpler-input |
lib.rs | simpler-input |
version | 0.2.0 |
source | src |
created_at | 2021-03-19 23:09:16.074389 |
updated_at | 2021-03-21 16:38:33.391912 |
description | A simpler way of receiving input from a user |
homepage | |
repository | https://github.com/Tarnest/simpler-input |
max_upload_size | |
id | 371184 |
size | 2,500 |
A simpler way to receive input from a user.
simpler-input = "0.2.0"
There is only one function, so it's easier to implement and remember.
use simpler-input::input;
fn main() {
// if you decide to get user input with no text printed before, you must pass None as an arg
let a = input(None);
// if you want text printed directly before your program asks for input, you can pass a string
let b = input("Hello there!");
}