Skip to main content

CounterexampleMinimizer

Type Alias CounterexampleMinimizer 

Source
pub type CounterexampleMinimizer<'a> = &'a dyn Fn(&BaseCounterExample, &mut dyn FnMut(&Bytes) -> bool) -> Option<Bytes>;
Expand description

Minimizes the calldata of a failing counterexample.

The second argument replays candidate calldata and returns whether it still fails the same way. Returns the minimized calldata when it differs from the counterexample’s.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes