Enum proptest_arbitrary::bits::BitsParams [] [src]

pub enum BitsParams<A> {
    Ranged(Range<usize>),
    Masked(A),
}

Parameters for configuring the generation of StrategyFor<Bits<A>>.

Variants

Uses BitSetStrategy::new(range.start, range.end).

Uses BitSetStrategy::masked(mask).

Trait Implementations

impl<A: Clone> Clone for BitsParams<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> PartialEq for BitsParams<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> Eq for BitsParams<A>
[src]

impl<A: Hash> Hash for BitsParams<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> Debug for BitsParams<A>
[src]

[src]

Formats the value using the given formatter.

impl<A: AllOnes + BitSetLike> Default for BitsParams<A>
[src]

[src]

Returns the "default value" for a type. Read more

impl Default for BitsParams<BitSet>
[src]

[src]

Uses a range: 0 .. sizeof(usize)^2.

impl<A: BitSetLike> From<(A,)> for BitsParams<A>
[src]

[src]

Performs the conversion.

impl<A> From<Range<usize>> for BitsParams<A>
[src]

[src]

Performs the conversion.