genetic_algorithms 2.2.0

Library for solving genetic algorithm problems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[allow(deprecated)]
use super::Reporter;
use crate::traits::ChromosomeT;

/// A no-op reporter. All hook methods use the trait's default empty bodies.
///
/// This type exists primarily for documentation and testing. In practice,
/// `Ga<U>` stores `Option<Box<dyn Reporter<U> + Send>>` and defaults to
/// `None`, so no reporter code runs at all when the user does not configure one.
pub struct NoopReporter;

#[allow(deprecated)]
impl<U: ChromosomeT> Reporter<U> for NoopReporter {}