#input #following #give

shittyinput

An input library for rust

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

Download history 150/week @ 2024-09-09 25/week @ 2024-09-16 63/week @ 2024-09-30 2/week @ 2024-10-07 16/week @ 2024-12-09 245/week @ 2024-12-16

261 downloads per month

MIT/Apache

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 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.

No runtime deps