shittyinput

Crates.ioshittyinput
lib.rsshittyinput
version1.1.1
created_at2024-08-11 02:58:37.499049+00
updated_at2024-12-18 00:57:45.229117+00
descriptionAn input library for rust
homepage
repositoryhttps://github.com/clear-leo/ShittyInput
max_upload_size
id1332905
size3,211
leo (clear-leo)

documentation

README

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.
Commit count: 23

cargo fmt