Struct BoxedStrategy
#[must_use = "strategies do nothing unless used"]
pub struct BoxedStrategy<T>(/* private field */);
A boxed Strategy trait object as produced by Strategy::boxed().
Strategies of this type afford cheap shallow cloning via reference
counting by using an Arc internally.
Trait Implementations
impl<T> Clone for BoxedStrategy<T>
fn clone(&self) -> Self
impl<T: Debug> Debug for BoxedStrategy<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Debug> Strategy for BoxedStrategy<T>
type Tree = Box<dyn ValueTree<Value = T>>;type Value = T;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>fn boxed(self) -> BoxedStrategy<Self::Value> where Self: Sized + 'static,