//! # Cargiao //! //! `Cargiao` is a yi li wo li giao giao pub use self::kinds::{PrimaryColor,SecondaryColor}; pub use self::utils::mix; /// Now let's write a documentation comments /// # It is a level 1 heading /// ## It is a level two heading /// /// ``` /// // It is a code /// let arg = 5; /// let answer = cargiao::add_one(arg); /// assert_eq!(6,answer); /// ``` /// pub fn add_one(x: i32) -> i32 { x + 1 } pub mod kinds { /// The primary colors are the best giao giao pub enum PrimaryColor { Red, Yellow, Blue } /// The secondary colors are the second giao giao pub enum SecondaryColor { Orange, Green, Purple, } } pub mod utils { use crate::kinds::*; /// Combines two primary giao giao in equal /// amount to create a secondary giao giao pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { // Yi li wo li giao giao\ SecondaryColor::Green } }