Crates.io | input-utils |
lib.rs | input-utils |
version | 0.1.1 |
source | src |
created_at | 2023-08-17 19:05:05.151905 |
updated_at | 2023-08-18 07:06:46.523754 |
description | Small package with console input utils |
homepage | |
repository | https://github.com/fomgleb/input-utils |
max_upload_size | |
id | 947345 |
size | 4,563 |
Small package with console input utils.
use input_utils;
fn main() {
let age: u32 = input_utils::read_input("Enter your age: ", "Invalid input.\n");
println!("Your age is {}", age);
}