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
pis the other pool to combine withselfoverride_weightdetermines the relative chance of selectingpwhen the resultingAndPoolis asked to provide a test case. IfNone,p.weight()will be used. The weight ofselfis alwaysself.weight()._sensor_markertells whetherselfandpoperate on the same observations or not. If they do, passSameObservations. Otherwise, passDifferentObservations. See the documentation ofAndPoolfor more details.