cargo_demo2 0.1.0

zei-rust first demo to crates.io,no value
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// use cargo_demo2::kinds::PrimaryColor;
// use cargo_demo2::utils::mix;

use cargo_demo2::PrimaryColor;
use cargo_demo2::mix;

fn main() {
    let red=PrimaryColor::Red;
    let yellow=PrimaryColor::Yellow;
    let mixed=mix(red,yellow);
    println!("mixed color:{:?}",mixed);
}