pub trait PoolExt: Pool + Sized {
// Provided method
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§
Sourcefn and<P, SM>(
self,
p: P,
override_weight: Option<f64>,
_sensor_marker: SM,
) -> AndPool<Self, P, SM>where
P: Pool,
fn and<P, SM>(
self,
p: P,
override_weight: Option<f64>,
_sensor_marker: SM,
) -> AndPool<Self, P, SM>where
P: Pool,
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.