comp-io 0.1.2

A crate for optimized io operations to numerical types
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented3 out of 9 items with examples
  • Size
  • Source code size: 7.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lodetrick

A Rust library for competitive programming to make io operations simpler.

The comp-io crate provides methods to read numerical values, as well as chars from stdin

Usage

The usage of comp-io typically looks like this:

let mut reader = comp_io::Reader::new();

let num1: i32 = reader.next_i32().unwrap();
let num2: f64 = reader.next_f64().unwrap();

println!("read: {num1} {num2}");

Note: The Reader struct expects an EOF at the end of input. To enter this in the terminal, press CTRL + D