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

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

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

Methods

impl<G> 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>

impl<G> Unpin for VecMutation<G>

impl<G> !UnwindSafe for VecMutation<G>

impl<G> !RefUnwindSafe for VecMutation<G>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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