macron-input 0.1.1

Reads user input lines from the console
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 7.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 282.98 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • fuderis

githubcrates-iodocs-rs

Read User Inputs

Introduction:

Reads user input lines from the console.

P.s.: More useful macros you can find here.

Examples:

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}"));
    }
}

Licensing:

Distributed under the MIT license.

Feedback:

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.