Crates.io | shittyinput |
lib.rs | shittyinput |
version | 1.0.0 |
source | src |
created_at | 2024-08-11 02:58:37.499049 |
updated_at | 2024-09-09 23:15:06.06074 |
description | An input library for rust |
homepage | |
repository | https://github.com/clear-leo/ShittyInput |
max_upload_size | |
id | 1332905 |
size | 3,906 |
This is a fairly shitty input managing crate, I made it because I was tired of writing three or four lines per each input.
The whole crate was basically just made to "shorten your code cuh!"
The crate currently contains:
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, no need for error handling there.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.1.0.0 release babyyy!!