Crates.io | call_input |
lib.rs | call_input |
version | 0.1.0 |
source | src |
created_at | 2023-06-01 01:04:59.134982 |
updated_at | 2023-06-01 01:04:59.134982 |
description | Get user input in rust like that of cs50 header file |
homepage | |
repository | https://github.com/Try3D/call_input |
max_upload_size | |
id | 879362 |
size | 4,685 |
Get user input in rust
$ cargo add call_input
mod call_input;
fn main() {
let n = call_input::get_i32("Enter your number:");
let s = call_input::get_string("Enter your string:");
let f = call_input::get_float("Enter your float:");
}