//! Fern allows you to manipulate ferns.
//! It's a sample crate to testing purpose.
//!//! ```js
//! console.log(1 === 1);
//! ```
#[derive(Debug)]pubstructFern{pubsize:f64,
pubgrowth_rate:f64,
}implFern{/// Simulate a fern growing for one day.
pubfngrow(&mutself){self.size *=1.0+self.growth_rate;}}/// Run a fern simulation for some number of days.
pubfnrun_simulation(fern:&mut Fern, days:usize){for_in0..days {
fern.grow();}}