Struct genevo::population::BinaryEncodedGenomeBuilder
source · [−]pub struct BinaryEncodedGenomeBuilder { /* private fields */ }
Expand description
A GenomeBuilder
that builds binary encoded genetic::Genotype
s.
The default implementation can build fixedbitset::FixedBitSet
genomes
and Vec<bool>
genomes.
Implementations
Trait Implementations
sourceimpl Clone for BinaryEncodedGenomeBuilder
impl Clone for BinaryEncodedGenomeBuilder
sourcefn clone(&self) -> BinaryEncodedGenomeBuilder
fn clone(&self) -> BinaryEncodedGenomeBuilder
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 Debug for BinaryEncodedGenomeBuilder
impl Debug for BinaryEncodedGenomeBuilder
sourceimpl GenomeBuilder<FixedBitSet> for BinaryEncodedGenomeBuilder
impl GenomeBuilder<FixedBitSet> for BinaryEncodedGenomeBuilder
sourcefn build_genome<R>(&self, _index: usize, rng: &mut R) -> FixedBitSet where
R: Rng + Sized,
fn build_genome<R>(&self, _index: usize, rng: &mut R) -> FixedBitSet where
R: Rng + Sized,
Builds a new genome of type genetic::Genotype
for the given
index
using the given random number generator rng
. Read more
sourceimpl<A> GenomeBuilder<SmallVec<A>> for BinaryEncodedGenomeBuilder where
A: Array<Item = bool> + Sync,
impl<A> GenomeBuilder<SmallVec<A>> for BinaryEncodedGenomeBuilder where
A: Array<Item = bool> + Sync,
sourceimpl GenomeBuilder<Vec<bool, Global>> for BinaryEncodedGenomeBuilder
impl GenomeBuilder<Vec<bool, Global>> for BinaryEncodedGenomeBuilder
sourceimpl PartialEq<BinaryEncodedGenomeBuilder> for BinaryEncodedGenomeBuilder
impl PartialEq<BinaryEncodedGenomeBuilder> for BinaryEncodedGenomeBuilder
sourcefn eq(&self, other: &BinaryEncodedGenomeBuilder) -> bool
fn eq(&self, other: &BinaryEncodedGenomeBuilder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BinaryEncodedGenomeBuilder) -> bool
fn ne(&self, other: &BinaryEncodedGenomeBuilder) -> bool
This method tests for !=
.
impl StructuralPartialEq for BinaryEncodedGenomeBuilder
Auto Trait Implementations
impl RefUnwindSafe for BinaryEncodedGenomeBuilder
impl Send for BinaryEncodedGenomeBuilder
impl Sync for BinaryEncodedGenomeBuilder
impl Unpin for BinaryEncodedGenomeBuilder
impl UnwindSafe for BinaryEncodedGenomeBuilder
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