Struct xu::operations::Operation[][src]

pub struct Operation<Gene, Data> where
    Standard: Distribution<Gene>,
    Gene: Clone + Hash + Send + 'static,
    Data: Clone + Send + 'static, 
{ /* fields omitted */ }

Modifies a selection of a population.

Implementations

impl<Gene, Data> Operation<Gene, Data> where
    Standard: Distribution<Gene>,
    Gene: Clone + Hash + Send + 'static,
    Data: Clone + Send + 'static, 
[src]

pub fn with_values(selection: Selection, operation_type: OperationType) -> Self[src]

pub fn new(operation_type: OperationType, selection: Selection) -> Self[src]

pub fn run(
    &self,
    population: Population<Gene>,
    data: &Data,
    score_provider: &mut dyn ScoreProvider<Gene, Data>
) -> Population<Gene>
[src]

Trait Implementations

impl<Gene: Clone, Data: Clone> Clone for Operation<Gene, Data> where
    Standard: Distribution<Gene>,
    Gene: Clone + Hash + Send + 'static,
    Data: Clone + Send + 'static, 
[src]

Auto Trait Implementations

impl<Gene, Data> RefUnwindSafe for Operation<Gene, Data> where
    Data: RefUnwindSafe,
    Gene: RefUnwindSafe

impl<Gene, Data> Send for Operation<Gene, Data>

impl<Gene, Data> Sync for Operation<Gene, Data> where
    Data: Sync,
    Gene: Sync

impl<Gene, Data> Unpin for Operation<Gene, Data> where
    Data: Unpin,
    Gene: Unpin

impl<Gene, Data> UnwindSafe for Operation<Gene, Data> where
    Data: UnwindSafe,
    Gene: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.