pub struct SimulationExplorer { /* private fields */ }Expand description
An object that yields successive Simulations until there are no more.
Implementations§
Source§impl SimulationExplorer
impl SimulationExplorer
Sourcepub fn next_simulation(&mut self) -> Option<Simulation<'_>>
pub fn next_simulation(&mut self) -> Option<Simulation<'_>>
Provide the next Simulation, if there is one.
Sourcepub fn for_each<F, T>(&mut self, f: F)where
F: for<'b> FnMut(Simulation<'b>) -> T,
pub fn for_each<F, T>(&mut self, f: F)where
F: for<'b> FnMut(Simulation<'b>) -> T,
Run all simulations by providing successive Simulations to the given closure.
Sourcepub fn map<F, T>(&mut self, f: F) -> Map<'_, F> ⓘwhere
F: for<'b> FnMut(Simulation<'b>) -> T,
pub fn map<F, T>(&mut self, f: F) -> Map<'_, F> ⓘwhere
F: for<'b> FnMut(Simulation<'b>) -> T,
Provide successive Simulations to the given closure, and provide an iterator over the
results.
Trait Implementations§
Source§impl Default for SimulationExplorer
impl Default for SimulationExplorer
Source§fn default() -> SimulationExplorer
fn default() -> SimulationExplorer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimulationExplorer
impl RefUnwindSafe for SimulationExplorer
impl Send for SimulationExplorer
impl Sync for SimulationExplorer
impl Unpin for SimulationExplorer
impl UnwindSafe for SimulationExplorer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more