Struct genestring::Genestring

source ·
pub struct Genestring { /* private fields */ }

Implementations

Creates a gene string capable of holding at least count bits.

Returns a helper for writing values in to the genestring.

Returns a helper for reading values from the genestring.

Returns the number of bits in the gene string.

Returns the number of bytes in the gene string.

Returns the number of integer parts of the gene string.

Retrieves bits number of bits from the string, starting at a given offset. Panics if bits is larger than 64 or would otherwise go outside the bounds of the string.

Provides an immutable iterator for the gene string’s internal bank of integers.

Provides a mutable iterator for the gene string’s internal bank of integers.

Assigns a value at the given bit offset and bit length.

Copies bits from a given offset and bit length from a donor to self. Both strings do not need to be the same total length, but the range being copied must be valid and the same for both donor and self. Used to implement crossover.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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.