prunus 0.1.0

A little practice of publishing crates
Documentation
//! # prunus
//!
//! prunus is a genus of trees and shrubs, which includes (among many others)
//! the fruits plums, cherries, peaches, nectarines, apricots, and almonds.

pub use cherry::Tree;

/// Turn the peaches into plums using the formula:
/// plum = (peach * 3 - 4) * 2
///
/// # Examples
///
/// ```
/// let a = 6;
/// let result = prunus::turn_peach_into_plum(a);
///
/// assert_eq!(result, 28);
/// ```
pub fn turn_peach_into_plum(peach: i32) -> i32 {
    (peach * 3 - 4) * 2
}


pub mod cherry {
    pub struct Tree {
        pub height: f32,
        pub age: i32,
        pub blossom_color: (i32, i32, i32),
    }
}