pub struct Simulator<A, T> where
A: Algorithm,
T: Termination<A>, { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<A, T> Simulation<A> for Simulator<A, T> where
A: Algorithm + TrackProcessingTime + Debug,
<A as Algorithm>::Error: Eq + Hash + Display + Send + Sync,
T: Termination<A>,
impl<A, T> Simulation<A> for Simulator<A, T> where
A: Algorithm + TrackProcessingTime + Debug,
<A as Algorithm>::Error: Eq + Hash + Display + Send + Sync,
T: Termination<A>,
type Error = SimError<A>
sourcefn run(&mut self) -> Result<SimResult<A>, Self::Error>
fn run(&mut self) -> Result<SimResult<A>, Self::Error>
Runs this simulation completely. The simulation ends when the termination criteria are met. Read more
sourcefn step(&mut self) -> Result<SimResult<A>, Self::Error>
fn step(&mut self) -> Result<SimResult<A>, Self::Error>
Makes one step in this simulation. One step in the simulation performs one time the complete loop of the genetic algorithm. Read more
sourceimpl<A, T> SimulationBuilder<Simulator<A, T>, A> for SimulatorBuilder<A, T> where
A: Algorithm + TrackProcessingTime + Debug,
<A as Algorithm>::Error: Eq + Hash + Display + Send + Sync,
T: Termination<A>,
impl<A, T> SimulationBuilder<Simulator<A, T>, A> for SimulatorBuilder<A, T> where
A: Algorithm + TrackProcessingTime + Debug,
<A as Algorithm>::Error: Eq + Hash + Display + Send + Sync,
T: Termination<A>,
Auto Trait Implementations
impl<A, T> RefUnwindSafe for Simulator<A, T> where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T> Send for Simulator<A, T> where
A: Send,
T: Send,
impl<A, T> Sync for Simulator<A, T> where
A: Sync,
T: Sync,
impl<A, T> Unpin for Simulator<A, T> where
A: Unpin,
T: Unpin,
impl<A, T> UnwindSafe for Simulator<A, T> where
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more