8 releases (3 stable)
1.1.1 | Dec 18, 2024 |
---|---|
1.0.1 | Dec 17, 2024 |
1.0.0 | Sep 9, 2024 |
0.1.4 | Aug 24, 2024 |
#7 in #give
261 downloads per month
4KB
A fairly shitty input managing crate for rust
Made this crate because inputting things in rust is incredibly not beginner friendly. This crate gives you a few functions that abstract the non beginner friendliness away.
Usage
The crate contains the following functions:
get_int()
Returns an integer of sizeisize
. Returns a standardio::Error
if it couldn't parse the input.get_string()
Returns the inputed String. Returns a standardio::Error
if it couldn't get the input from stdin.get_f32()
Returns a float of typef32
. Returns a standardio::Error
if it couldn't parse the input.get_f64()
Returns a float of typef64
. Returns a standardio::Error
if it couldn't parse the input.