charondev 0.1.0

A lib for test
Documentation
//! # first_time
//! 
//! `first_time` is a collection of utilites to make a good rust projects.
//! and that's it

pub use self::kinds::PrimaryColors;
pub use self::kinds::SecondryColors;
pub use self::utils::mix;

pub mod kinds {
    /// primary colors according to the RYB color model 
    pub enum PrimaryColors {
        Red,
        Yellow,
        Blue
    }

    /// The secondry colors accirding the RYB color model.
    pub enum SecondryColors {
        Orange, 
        Green,
        Purpel
    }
}

pub mod utils {
    use crate::kinds::*;

    /// Combains two primay colors in equal amounts to create
    /// a secondry color
    pub fn mix(c1: PrimaryColors  , c2 : PrimaryColors) -> SecondryColors {
        // --snip--
        //Anchor_End 
        SecondryColors::Orange
        // Anchor : Here
    }
}

/// Adds one to the number given.
/// 
/// # Examples
/// 
/// ```
/// let arg = 5;
/// let answer = crates::add_one(arg);
/// 
/// assert_eq!(6 , answer);
/// ```


pub fn add_one(x : i32) -> i32 {
    x + 1
}