Struct Recursive

#[must_use = "strategies do nothing unless used"]
pub struct Recursive<T, F> { /* private fields */ }

Return type from Strategy::prop_recursive().

Trait Implementations

impl<T, F> Clone for Recursive<T, F>

fn clone(&self) -> Self

impl<T: Debug + 'static, R: Strategy<Value = T> + 'static, F: Fn(BoxedStrategy<T>) -> R> Strategy for Recursive<T, F>

type Tree = Box<dyn ValueTree<Value = T>>;
type Value = T;
fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>

impl<T: Debug, F> Debug for Recursive<T, F>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<T, F> !RefUnwindSafe for Recursive<T, F>

impl<T, F> !Send for Recursive<T, F>

impl<T, F> !Sync for Recursive<T, F>

impl<T, F> !UnwindSafe for Recursive<T, F>

impl<T, F> Freeze for Recursive<T, F> where BoxedStrategy<T>: Freeze, Arc<F>: Freeze,

impl<T, F> Unpin for Recursive<T, F> where BoxedStrategy<T>: Unpin, Arc<F>: Unpin,

impl<T, F> UnsafeUnpin for Recursive<T, F> where BoxedStrategy<T>: UnsafeUnpin, Arc<F>: UnsafeUnpin,

Blanket Implementations

impl<T> Any for Recursive<T, F> where T: 'static + ?Sized,

impl<T> Borrow<T> for Recursive<T, F> where T: ?Sized,

impl<T> BorrowMut<T> for Recursive<T, F> where T: ?Sized,

impl<T> CloneToUninit for Recursive<T, F> where T: Clone,

impl<T> From<T> for Recursive<T, F>

impl<T> ToOwned for Recursive<T, F> where T: Clone,

impl<T, U> Into<U> for Recursive<T, F> where U: From<T>,

impl<T, U> TryFrom<U> for Recursive<T, F> where U: Into<T>,

impl<T, U> TryInto<U> for Recursive<T, F> where U: TryFrom<T>,