Struct genevo::population::Population
source · [−]pub struct Population<G> where
G: Genotype, { /* private fields */ }
Expand description
The Population
defines a set of possible solutions to the optimization
or search problem.
Implementations
sourceimpl<G> Population<G> where
G: Genotype,
impl<G> Population<G> where
G: Genotype,
sourcepub fn with_individuals(individuals: Vec<G>) -> Population<G>
pub fn with_individuals(individuals: Vec<G>) -> Population<G>
Creates a new Population
with the given individuals as members.
Trait Implementations
sourceimpl<G: Clone> Clone for Population<G> where
G: Genotype,
impl<G: Clone> Clone for Population<G> where
G: Genotype,
sourcefn clone(&self) -> Population<G>
fn clone(&self) -> Population<G>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<G: Debug> Debug for Population<G> where
G: Genotype,
impl<G: Debug> Debug for Population<G> where
G: Genotype,
sourceimpl<G: PartialEq> PartialEq<Population<G>> for Population<G> where
G: Genotype,
impl<G: PartialEq> PartialEq<Population<G>> for Population<G> where
G: Genotype,
sourcefn eq(&self, other: &Population<G>) -> bool
fn eq(&self, other: &Population<G>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Population<G>) -> bool
fn ne(&self, other: &Population<G>) -> bool
This method tests for !=
.
impl<G> StructuralPartialEq for Population<G> where
G: Genotype,
Auto Trait Implementations
impl<G> RefUnwindSafe for Population<G> where
G: RefUnwindSafe,
impl<G> Send for Population<G>
impl<G> Sync for Population<G>
impl<G> Unpin for Population<G> where
G: Unpin,
impl<G> UnwindSafe for Population<G> where
G: 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