#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct CustomColor {
pub r: u8,
pub g: u8,
pub b: u8,
}
impl CustomColor {
pub fn new(r: u8, g: u8, b: u8) -> Self {
Self { r, g, b }
}
}
#[cfg(test)]
mod tests {
use crate::*;
#[test]
fn main() {
let my_color = CustomColor::new(0, 120, 120);
println!("{}", "Greetings from Ukraine".custom_color(my_color));
}
}