Struct Group

Source
pub struct Group<T, FI, SI, RI, const N: usize, const R: usize>{ /* private fields */ }

Trait Implementations§

Source§

impl<T, FI, SI, RI, const N: usize, const R: usize> GroupTrait<T, N, R> for Group<T, FI, SI, RI, N, R>

Source§

type Err = GenerationError

An error of cycle
Source§

fn new(data: [T; N]) -> Self

Create Self from a array. Read more
Source§

fn one_cycle(&mut self) -> Result<(), Self::Err>

Run one cycle and update individuals.
Source§

fn one_cycle_out<W>(&mut self, out: &mut W) -> Result<(), Self::Err>
where W: Write,

Run one cycle with outputing and update individuals. Read more
Source§

fn iter<'a>(&'a self) -> impl Iterator<Item = &'a Individual<T>>
where T: 'a,

Create an iterator of indivuduals. Read more
Source§

fn init<I>() -> Self
where I: InitializerTrait<T, N>, Self: Sized,

Initialize Self by I algorithm. Read more
Source§

fn reset_id(&self)

Assign a number to individuals in order.
Source§

fn clone_values(&self) -> Vec<T>
where T: Clone,

Clone individuals which are contained by this.
Source§

impl<'a, T, FI, SI, RI, const N: usize, const R: usize> IntoIterator for &'a Group<T, FI, SI, RI, N, R>

Source§

type IntoIter = Iter<'a, GenerationIndividual<T, FI, SI, RI, N, R>>

Which kind of iterator are we turning this into?
Source§

type Item = &'a GenerationIndividual<T, FI, SI, RI, N, R>

The type of the elements being iterated over.
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<T, FI, SI, RI, const N: usize, const R: usize> Freeze for Group<T, FI, SI, RI, N, R>

§

impl<T, FI, SI, RI, const N: usize, const R: usize> !RefUnwindSafe for Group<T, FI, SI, RI, N, R>

§

impl<T, FI, SI, RI, const N: usize, const R: usize> !Send for Group<T, FI, SI, RI, N, R>

§

impl<T, FI, SI, RI, const N: usize, const R: usize> !Sync for Group<T, FI, SI, RI, N, R>

§

impl<T, FI, SI, RI, const N: usize, const R: usize> Unpin for Group<T, FI, SI, RI, N, R>
where FI: Unpin, SI: Unpin, RI: Unpin,

§

impl<T, FI, SI, RI, const N: usize, const R: usize> !UnwindSafe for Group<T, FI, SI, RI, N, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V