my-essentials 0.1.1

A rust library that simplifies things
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 5 items with examples
  • Size
  • Source code size: 1.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.08 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Apearson75

My Essentials for Rust

use my_essentials::*;

fn main() {
    clear_screen();

    println!("Welcome to the survey");

    let array = ["1. Bad", "2. Ok", "3. Good", "4. Great", "5. Excelent"];
    print_each(&array);
    
    let inp = input("How Would you rate your experience?");
    let res = parse_int(&inp);

    if res < 1 || res > 5 {
        println!("Invalid Answer");
        exit();
        return;
    }

    println!("Thank you for the feedback.");

    exit();
}