Struct gas::pool::Pool

source · []
pub struct Pool<const N: usize, const NSYMS: usize> {
    pub progresses: Vec<CycleProgress<N, NSYMS>>,
    pub handles: Vec<JoinHandle<Candidate<N, NSYMS>>>,
    pub sigint: Arc<AtomicBool>,
}
Expand description

Run the algorithm on a set of populations simultaneously using multithreading.

Set sigint to true to stop the iterations manually.

Fields

progresses: Vec<CycleProgress<N, NSYMS>>handles: Vec<JoinHandle<Candidate<N, NSYMS>>>sigint: Arc<AtomicBool>

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.