1 2 3 4 5 6 7 8 9 10 11
extern crate my_crate_li; use my_crate_li::PrimaryColor; use my_crate_li::mix; fn main() { let red = PrimaryColor::Red; let yellow = PrimaryColor::Yellow; let mixed = mix(red, yellow); println!("Mixed color: {:?}", mixed); }