Skip to main content

Module effect_handlers

Module effect_handlers 

Source
Expand description

Poutine-style effect handlers for evolutionary operations

Effect handlers intercept and transform evolutionary operations, enabling:

  • Logging and tracing of all genetic operations
  • Conditional modification of operator behavior
  • Composition of effects (e.g., logging + rate limiting)
  • Replay of evolutionary traces for debugging

Structs§

ComposedCrossoverHandler
Composition of multiple crossover handlers
ComposedMutationHandler
Composition of multiple mutation handlers
ConditionalHandler
A handler that conditionally blocks operations based on a predicate
CrossoverRecord
Record of a crossover operation
LoggingHandler
A handler that logs all evolutionary operations
MutationRecord
Record of a mutation operation
OperationStatistics
Statistics computed from handler records
RateLimitingHandler
A handler that rate-limits operations
SelectionRecord
Record of a selection operation

Traits§

CrossoverHandler
Effect handler trait for crossover operations
MutationHandler
Effect handler trait for mutation operations
SelectionHandler
Effect handler trait for selection operations

Functions§

handled_crossover_traces
Handled crossover operator that integrates with effect handlers
handled_mutate_trace
Handled mutation operator that integrates with effect handlers