[][src]Struct optlib::genetic::mutation::VecMutation

pub struct VecMutation<G: Clone> { /* fields omitted */ }

Mutation for chromosomes of Vec, where G - type of single gene.

Methods

impl<G: Clone> VecMutation<G>[src]

pub fn new(probability: f64, single_mutation: Box<dyn Mutation<G>>) -> Self[src]

Constructor

Parameters

  • probability - probability of mutation of single gene.
  • single_mutation - trait object with mutation algorithm for single gene.

Trait Implementations

impl<G: Clone> Mutation<Vec<G>> for VecMutation<G>[src]

Auto Trait Implementations

impl<G> !Send for VecMutation<G>

impl<G> !Sync for VecMutation<G>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.