r28_release_profile 0.1.0

crates.io 发布包测试
Documentation
//! # r28_release_profile Crate
//!
//! calculations more convenient.

/// Add one
///
/// # Examples
///
/// ```
/// let x=5;
/// let y=4;
/// let result =r28_release_profile::add(x,y);
/// assert_eq!(result,9);
/// ```

pub fn add(x: u32, y: u32) -> u32 {
    x + y
}

pub use self::color::PrimaryColor;
pub use self::color::SecondaryColor;

pub use self::utils::mix;

pub mod color {
    pub enum PrimaryColor {
        BLUE,
        RED,
    }
    pub enum SecondaryColor {
        YELLOW,
        GREEN,
    }
}

pub mod utils {
    use crate::color::PrimaryColor;
    use crate::color::SecondaryColor;
    pub fn mix(color1: PrimaryColor, color2: SecondaryColor) -> SecondaryColor {
        SecondaryColor::YELLOW
    }
}