rust-closures-examples 0.1.0

A closure which are important and relatively fast in doing tasks
Documentation
//! # Art
//!
//! A library for modelling artistic concepts ...

pub mod kinds {
    /// the primary colors according to the RGB color model
    #[derive(Debug)]
    pub enum PrimaryColor {
        Red,
        Yellow,
        Green,
    }
    /// the secondry color according to the RGB color model
    #[derive(Debug)]
    pub enum SecondryColor {
        Orange,
        Purple,
        Black,
    }
}

pub mod utils {
    use crate::kinds::*;
    /// combines two primary colors in equal amount  to create
    /// a secondry color
    pub fn mix(c1: PrimaryColor, c2: SecondryColor) -> SecondryColor {
        // --- snip ---
        c2
    }
}