[][src]Struct genevo::population::ValueEncodedGenomeBuilder

pub struct ValueEncodedGenomeBuilder<V> { /* fields omitted */ }

A GenomeBuilder that builds value encoded genetic::Genotypes.

The default implementation can build Vec<T> genomes. The values of T are generated randomly in the range between a min value and a max value.

Methods

impl<V> ValueEncodedGenomeBuilder<V>[src]

pub fn new(genome_length: usize, min_value: V, max_value: V) -> Self[src]

Returns a new instance of the ValueEncodedGenomeBuilder that builds value encoded genomes of length specified by the given genome_length.

The values of the generated genomes are in the range between the given min_value (inclusive) and max_value (exclusive).

Trait Implementations

impl<V> GenomeBuilder<Vec<V>> for ValueEncodedGenomeBuilder<V> where
    V: Clone + Debug + PartialEq + PartialOrd + SampleUniform + Send + Sync
[src]

impl<V: Clone> Clone for ValueEncodedGenomeBuilder<V>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<V: PartialEq> PartialEq<ValueEncodedGenomeBuilder<V>> for ValueEncodedGenomeBuilder<V>[src]

impl<V: Debug> Debug for ValueEncodedGenomeBuilder<V>[src]

Auto Trait Implementations

impl<V> Send for ValueEncodedGenomeBuilder<V> where
    V: Send

impl<V> Sync for ValueEncodedGenomeBuilder<V> where
    V: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]