pub use kinds::PrimaryColor;
pub use kinds::SecondaryColor;
pub use utils::mix;
pub mod kinds {
pub enum PrimaryColor {
Red,
Yellow,
Blue,
}
#[derive(Debug)]
pub enum SecondaryColor {
Orange,
Green,
Purple,
}
}
pub mod utils {
use crate::kinds::{PrimaryColor, SecondaryColor};
pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor {
let _color1 = c1;
let _color2 = c2;
println!("The result color is {:?}",SecondaryColor::Orange);
SecondaryColor::Orange
}
}