| Crates.io | macron-input |
| lib.rs | macron-input |
| version | 0.1.1 |
| created_at | 2025-05-25 04:17:41.3061+00 |
| updated_at | 2025-05-25 04:17:41.3061+00 |
| description | Reads user input lines from the console |
| homepage | |
| repository | https://github.com/fuderis/rs-macron/tree/main/macron-input |
| max_upload_size | |
| id | 1688004 |
| size | 8,092 |
Reads user input lines from the console.
P.s.: More useful macros you can find here.
let mut input = input!("Enter in order '0', '1', '2': ");
for i in 0..=2 {
if let Ok(text) = input.next().unwrap() {
assert_eq!(text, format!("{i}"));
}
}
Distributed under the MIT license.
You can contact me via GitHub or send a message to my Telegram @fuderis.
This library is constantly evolving, and I welcome your suggestions and feedback.