simpler-input 0.2.0

A simpler way of receiving input from a user
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 983.15 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Tarnest/simpler-input
    2 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Tarnest

A simpler way to receive input from a user.

Usage

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