Skip to main content

EmptyProbe

Struct EmptyProbe 

Source
pub struct EmptyProbe;

Implementations§

Source§

impl EmptyProbe

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl<IndividualT: IndividualTrait> Probe<IndividualT> for EmptyProbe

Source§

fn on_start(&mut self, _metadata: &GAMetadata)

This method is called in the very beginning of genetic algorithm, even before initial population is generated. Read more
Source§

fn on_initial_population_created(&mut self, _population: &[IndividualT])

This method is called directly after initial populationn is created and fitness of the individuals is evaluated Read more
Source§

fn on_new_best(&mut self, _metadata: &GAMetadata, _individual: &IndividualT)

This method is called every time new best individual is found (irrespectively of generation) Read more
Source§

fn on_new_generation( &mut self, _metadata: &GAMetadata, _generation: &[IndividualT], )

This method is called every time a new generation is created (but not for initial population) Read more
Source§

fn on_best_fit_in_generation( &mut self, _metadata: &GAMetadata, _individual: &IndividualT, )

This method is called once per generation with best individual in it Read more
Source§

fn on_iteration_start(&mut self, _metadata: &GAMetadata)

This method is called in the very begining of algorithm’s main loop Read more
Source§

fn on_iteration_end(&mut self, _metadata: &GAMetadata)

This method is called in the very end of algorithm’s main loop, just before termination conditions are evaluated Read more
Source§

fn on_end( &mut self, _metadata: &GAMetadata, _population: &[IndividualT], _best_individual: &IndividualT, )

This method is called after algorithm ’s main loop is exited, just before the run method returns Read more

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

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

Source§

fn vzip(self) -> V