Struct proptest_arbitrary::bits::Bits [] [src]

pub struct Bits<T: BitSetLike>(_);

Bits is a simple newtype for treating the generic type parameter T as a set of bits for the purposes of production of arbitrary values.

Methods

impl<T: BitSetLike> Bits<T>
[src]

[src]

Wraps an integral type into Bits which views it as a bit pattern.

Trait Implementations

impl<T: Clone + BitSetLike> Clone for Bits<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy + BitSetLike> Copy for Bits<T>
[src]

impl<T: PartialEq + BitSetLike> PartialEq for Bits<T>
[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<T: Eq + BitSetLike> Eq for Bits<T>
[src]

impl<T: PartialOrd + BitSetLike> PartialOrd for Bits<T>
[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<T: Ord + BitSetLike> Ord for Bits<T>
[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<T: Hash + BitSetLike> Hash for Bits<T>
[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<T: Debug + BitSetLike> Debug for Bits<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: BitSetLike> From<T> for Bits<T>
[src]

[src]

Performs the conversion.

impl<T: BitSetLike + Not<Output = T>> Not for Bits<T>
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl<T: BitSetLike + Neg<Output = T>> Neg for Bits<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl<T: BitSetLike + BitAnd<Output = T>> BitAnd for Bits<T>
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl<T: BitSetLike + BitOr<Output = T>> BitOr for Bits<T>
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<T: BitSetLike + BitXor<Output = T>> BitXor for Bits<T>
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl<T: BitSetLike + Add<Output = T>> Add for Bits<T>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T: BitSetLike + Sub<Output = T>> Sub for Bits<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T: BitSetLike + AddAssign> AddAssign for Bits<T>
[src]

[src]

Performs the += operation.

impl<T: BitSetLike + SubAssign> SubAssign for Bits<T>
[src]

[src]

Performs the -= operation.

impl<T: BitSetLike, __RhsT> Mul<__RhsT> for Bits<T> where
    T: Mul<__RhsT, Output = T>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T: BitSetLike, __RhsT> Div<__RhsT> for Bits<T> where
    T: Div<__RhsT, Output = T>, 
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T: BitSetLike, __RhsT> Rem<__RhsT> for Bits<T> where
    T: Rem<__RhsT, Output = T>, 
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl<T: BitSetLike, __RhsT> Shr<__RhsT> for Bits<T> where
    T: Shr<__RhsT, Output = T>, 
[src]

The resulting type after applying the >> operator.

[src]

Performs the >> operation.

impl<T: BitSetLike, __RhsT> Shl<__RhsT> for Bits<T> where
    T: Shl<__RhsT, Output = T>, 
[src]

The resulting type after applying the << operator.

[src]

Performs the << operation.

impl<T: BitSetLike> Generic for Bits<T>
[src]

The generic representation type

[src]

Go from something to Repr

[src]

Go from Repr to something

[src]

From one type to another using a type with a compatible generic representation

impl<'a> Arbitrary<'a> for Bits<i8>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<i16>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<i32>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<i64>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<isize>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<u8>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<u16>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<u32>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<u64>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<usize>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

impl<'a> Arbitrary<'a> for Bits<BitSet>
[src]

The type of [ValueTree] used for Self's [Strategy]. Read more

The type of parameters that [arbitrary_with] accepts for configuration of the generated [Strategy]. Parameters must implement [Default]. Read more

The type of [Strategy] used to generate values of type Self. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more