Struct proptest_quickcheck_interop::QCStrategy [] [src]

pub struct QCStrategy<A: Arbitrary + Debug> { /* fields omitted */ }

QCStrategy is a Strategy that provides interoperability with quickcheck's Arbitrary trait. If you have any type implementing Arbitrary and Debug, which a temporary requirement, then you may get back the equivalent Strategy in proptest.

Methods

impl<A: Arbitrary + Debug> QCStrategy<A>
[src]

[src]

Constructs a new QCStrategy given a size parameter that:

controls the size of random values generated. For example, it specifies the maximum length of a randomly generated vector and also will specify the maximum magnitude of a randomly generated number.

as defined by quickcheck

Trait Implementations

impl<A: Copy + Arbitrary + Debug> Copy for QCStrategy<A>
[src]

impl<A: Clone + Arbitrary + Debug> Clone for QCStrategy<A>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<A: PartialEq + Arbitrary + Debug> PartialEq for QCStrategy<A>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<A: Eq + Arbitrary + Debug> Eq for QCStrategy<A>
[src]

impl<A: PartialOrd + Arbitrary + Debug> PartialOrd for QCStrategy<A>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<A: Ord + Arbitrary + Debug> Ord for QCStrategy<A>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<A: Hash + Arbitrary + Debug> Hash for QCStrategy<A>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<A: Debug + Arbitrary + Debug> Debug for QCStrategy<A>
[src]

[src]

Formats the value using the given formatter.

impl<A: Arbitrary + Debug> Strategy for QCStrategy<A>
[src]

The value tree generated by this Strategy. Read more

[src]

Generate a new value tree from the given runner. Read more

[src]

Returns a strategy which produces values transformed by the function fun. Read more

[src]

Returns a strategy which produces values transformed by the function fun, which is additionally given a random number generator. Read more

[src]

Maps values produced by this strategy into new strategies and picks values from those strategies. Read more

[src]

Maps values produced by this strategy into new strategies and picks values from those strategies while considering the new strategies to be independent. Read more

[src]

Similar to prop_ind_flat_map(), but produces 2-tuples with the input generated from self in slot 0 and the derived strategy in slot 1. Read more

[src]

Returns a strategy which only produces values accepted by fun. Read more

[src]

Returns a strategy which picks uniformly from self and other. Read more

[src]

Generate a recursive structure with self items as leaves. Read more

[src]

Shuffle the contents of the values produced by this strategy. Read more

[src]

Erases the type of this Strategy so it can be passed around as a simple trait object. Read more

[src]

Erases the type of this Strategy so it can be passed around as a simple trait object. Read more

[src]

Wraps this strategy to prevent values from being subject to shrinking. Read more