Trait fuzzcheck::sensors_and_pools::PoolExt
source · [−]pub trait PoolExt: Pool + Sized {
fn and<P, SM>(
self,
p: P,
override_weight: Option<f64>,
_sensor_marker: SM
) -> AndPool<Self, P, SM>
where
P: Pool,
{ ... }
}
Expand description
A trait for convenience methods automatically implemented for all types that conform to Pool.
Provided Methods
Create an AndPool
from both Self
and P
.
Arguments
p
is the other pool to combine withself
override_weight
determines the relative chance of selectingp
when the resultingAndPool
is asked to provide a test case. IfNone
,p.weight()
will be used. The weight ofself
is alwaysself.weight()
._sensor_marker
tells whetherself
andp
operate on the same observations or not. If they do, passSameObservations
. Otherwise, passDifferentObservations
. See the documentation ofAndPool
for more details.