userinput

Crates.iouserinput
lib.rsuserinput
version0.1.5
sourcesrc
created_at2020-04-19 22:13:42.32296
updated_at2020-04-27 17:02:46.078346
descriptionlibrary for checking userinput errors
homepage
repositoryhttps://github.com/carnot-engine/userinput.git
max_upload_size
id232052
size21,734
HexCode (carnot-engine)

documentation

README

userinput

userinput is a simple rust library for checking the error during userinput

UML DIAGRAM

MOD DIAGRAM


eg:
fn main()
{
    println!("Enter the usize");
    let input = userinput::usize();
    println!("input:{} usize:{}",input,type_of(input));
}

output: Enter the usize 25 input:25 datatype:usize

syntax : userinput::datatype() //usize,isize,f64,f32,i128,u128,i64,u64,i32,u32,i8,u8,char,string : userinput::type_of(variable_name)

sample: let input = userinput::usize(); let input = userinput::string(); let input = userinput::char();

Commit count: 8

cargo fmt