Struct xu::operations::Operation [−][src]
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]
Standard: Distribution<Gene>,
Gene: Clone + Hash + Send + 'static,
Data: Clone + Send + 'static,
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]
&self,
population: Population<Gene>,
data: &Data,
score_provider: &mut dyn ScoreProvider<Gene, Data>
) -> Population<Gene>
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]
Standard: Distribution<Gene>,
Gene: Clone + Hash + Send + 'static,
Data: Clone + Send + 'static,
Auto Trait Implementations
impl<Gene, Data> RefUnwindSafe for Operation<Gene, Data> where
Data: RefUnwindSafe,
Gene: RefUnwindSafe,
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,
Data: Sync,
Gene: Sync,
impl<Gene, Data> Unpin for Operation<Gene, Data> where
Data: Unpin,
Gene: Unpin,
Data: Unpin,
Gene: Unpin,
impl<Gene, Data> UnwindSafe for Operation<Gene, Data> where
Data: UnwindSafe,
Gene: UnwindSafe,
Data: UnwindSafe,
Gene: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,