1 2 3 4 5 6 7 8 9 10 11 12 13
use arts::kinds::PrimaryColor; use arts::utils::mix; // To used below code, uncommnets below lines and lines# 6,7,8 in lib.rs // use arts::PrimaryColor; // use arts::mix; fn main() { let red = PrimaryColor::Red; let blue = PrimaryColor::Blue; mix(red, blue); }