Trait libafl::feedbacks::map::Reducer

source ·
pub trait Reducer<T>: 'static
where T: Default + Copy + 'static,
{ // Required method fn reduce(first: T, second: T) -> T; }
Expand description

A Reducer function is used to aggregate values for the novelty search

Required Methods§

source

fn reduce(first: T, second: T) -> T

Reduce two values to one value, with the current Reducer.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Reducer<T> for AndReducer
where T: BitAnd<Output = T> + Default + Copy + 'static + PartialOrd,

source§

impl<T> Reducer<T> for MaxReducer
where T: Default + Copy + 'static + PartialOrd,

source§

impl<T> Reducer<T> for MinReducer
where T: Default + Copy + 'static + PartialOrd,

source§

impl<T> Reducer<T> for NopReducer
where T: Default + Copy + 'static,

source§

impl<T> Reducer<T> for OrReducer
where T: BitOr<Output = T> + Default + Copy + 'static + PartialOrd,