Crates.io | easy_syntax |
lib.rs | easy_syntax |
version | 0.1.0 |
source | src |
created_at | 2018-02-11 13:00:51.782481 |
updated_at | 2018-02-11 13:00:51.782481 |
description | Easy syntax |
homepage | |
repository | https://github.com/aprokurov/easy_syntax |
max_upload_size | |
id | 50665 |
size | 5,451,898 |
Easy syntax it's a library for rust to use some input and sound things more easily!
Function input()
create empty string and you can use your kerboard input
extern crate easy_syntax;
use easy_syntax::input::input;
fn main() {
let name = input();
println!("{}", name);
}
Function raw_input()
create empty string and then format it to u32
extern crate easy_syntax;
use easy_syntax::input::raw_input;
fn main() {
let num1 = raw_input();
let num2: u32 = 10;
let out = num1 * num2;
println!("{} * {} = {}", num1, num2, out);
}
Function music_play()
plays music, see examples, function play()
do same thing as music_play
.