Input Conversion Crate
This crate contains a simple library used for reading user input and saving the input to a variable with of a given type.
This crate intends to simplify the way input from a user is read, avoiding the reapeated handling and parsing of simple, single-type inputs.
This is a introductory effort for rust crate publication, and may be unoptimized. Use for official projects is unadvised.
Version History
Version 1.0.0: Added basic library for standard user inputs
Version 1.0.1: Updated README
Version 1.1.0: Added character vector and non-trimmed string return types. Added integer handling of improper decimals and '-' signs.
Version 1.1.1: Optimized sizing
Version 1.2.0: Added file line reading functions for iterator use
Available crate funcitons:
//Crate uses:
// std::fs::File;
// std::io::{self, BufRead, BufReader};
//Function names and return types:
/* User IO functions: */
// The returned data exist as IO result options, and should be processed using <data>.unwrap() when the data needs to be used
/**********/
Example implementation of file iterator:
let file_path = "./path/to/file.txt";
let mut line_reader = match new ;
while let Some = line_reader.get_file_next_string.unwrap
Potential updates: Refactoring to split functionalities into separate modules