[−][src]Struct genevo::population::Population
The Population
defines a set of possible solutions to the optimization
or search problem.
Methods
impl<G> Population<G> where
G: Genotype,
[src]
G: Genotype,
pub fn with_individuals(individuals: Vec<G>) -> Population<G>
[src]
Creates a new Population
with the given individuals as members.
pub fn individuals(&self) -> &[G]
[src]
Returns a slice of all individuals of this Population
.
pub fn size(&self) -> usize
[src]
Returns the number of individuals in this Population
.
Trait Implementations
impl<G: Clone> Clone for Population<G> where
G: Genotype,
[src]
G: Genotype,
fn clone(&self) -> Population<G>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<G: PartialEq> PartialEq<Population<G>> for Population<G> where
G: Genotype,
[src]
G: Genotype,
fn eq(&self, other: &Population<G>) -> bool
[src]
fn ne(&self, other: &Population<G>) -> bool
[src]
impl<G: Debug> Debug for Population<G> where
G: Genotype,
[src]
G: Genotype,
Auto Trait Implementations
impl<G> Send for Population<G>
impl<G> Sync for Population<G>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,