MCPcopy Create free account
hub / github.com/ProgrammingRust/examples / apply_sunlight

Method apply_sunlight

fern_sim/src/simulation.rs:45–51  ·  view source on GitHub ↗

Let the sun shine in and run the simulation for a given amount of time. # use fern_sim::Terrarium; # use std::time::Duration; # let mut tm = Terrarium::new(); tm.apply_sunlight(Duration::from_secs(60));

(&mut self, time: Duration)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls

no outgoing calls

Tested by 1