| Crates.io | shittyinput |
| lib.rs | shittyinput |
| version | 1.1.1 |
| created_at | 2024-08-11 02:58:37.499049+00 |
| updated_at | 2024-12-18 00:57:45.229117+00 |
| description | An input library for rust |
| homepage | |
| repository | https://github.com/clear-leo/ShittyInput |
| max_upload_size | |
| id | 1332905 |
| size | 3,211 |
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.
The crate contains the following functions:
get_int() Returns an integer of size isize. Returns a standard io::Error if it couldn't parse the input.get_string() Returns the inputed String. Returns a standard io::Error if it couldn't get the input from stdin.get_f32() Returns a float of type f32. Returns a standard io::Error if it couldn't parse the input.get_f64() Returns a float of type f64. Returns a standard io::Error if it couldn't parse the input.