Skip to content

Commit

Permalink
Update trait requirements for FixedPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Apr 24, 2024
1 parent 40e09d6 commit ec6c1c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ga/operators/crossover/impls/fixed_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl FixedPoint {
) -> (IndividualT, IndividualT)
where
IndividualT: IndividualTrait,
IndividualT::ChromosomeT: IndexMut<usize, Output = GeneT> + Push<GeneT, PushedOut = Nothing>,
IndividualT::ChromosomeT: IndexMut<usize, Output = GeneT> + Len,
GeneT: Copy,
{
let mut child_1 = parent_1.clone();
Expand All @@ -61,7 +61,7 @@ impl FixedPoint {
impl<GeneT, IndividualT> CrossoverOperator<IndividualT> for FixedPoint
where
IndividualT: IndividualTrait,
IndividualT::ChromosomeT: IndexMut<usize, Output = GeneT> + Push<GeneT, PushedOut = Nothing>,
IndividualT::ChromosomeT: IndexMut<usize, Output = GeneT> + Len,
GeneT: Copy,
{
/// Returns vector of owned individuals which were created in result of applying crossover
Expand Down

0 comments on commit ec6c1c6

Please sign in to comment.