pub trait Arbitrary: Sized + Debug {
type Parameters: Default;
type Strategy: Strategy<Value = Self>;
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy;
fn arbitrary() -> Self::Strategy { ... }
}
Expand description
Arbitrary determines a canonical Strategy
for the implementing type.
It provides the method arbitrary_with
which generates a Strategy
for
producing arbitrary values of the implementing type (Self
). In general,
these strategies will produce the entire set of values possible for the
type, up to some size limitation or constraints set by their parameters.
When this is not desired, strategies to produce the desired values can be
built by combining Strategy
s as described in the crate documentation.
This trait analogous to
Haskell QuickCheck’s implementation of Arbitrary
.
In this interpretation of Arbitrary
, Strategy
is the equivalent of
the Gen
monad. Unlike in QuickCheck, Arbitrary
is not a core component;
types do not need to implement Arbitrary
unless one wants to use
any
or other free functions in this module.
Arbitrary
currently only works for types which represent owned data as
opposed to borrowed data. This is a fundamental restriction of proptest
which may be lifted in the future as the generic associated types (GAT)
feature of Rust is implemented and stabilized.
Required Associated Types
type Parameters: Default
type Parameters: Default
The type of parameters that arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.
Required Methods
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
Provided Methods
Generates a Strategy
for producing arbitrary values
of type the implementing type (Self
).
Calling this for the type X
is the equivalent of using
X::arbitrary_with(Default::default())
.
This method is defined in the trait for optimization for the default if you want to do that. It is a logic error to not preserve the semantics when overriding.
Implementations on Foreign Types
sourceimpl<A: Arbitrary> Arbitrary for [A; 1]
impl<A: Arbitrary> Arbitrary for [A; 1]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 1]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 2]
impl<A: Arbitrary> Arbitrary for [A; 2]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 2]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 3]
impl<A: Arbitrary> Arbitrary for [A; 3]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 3]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 4]
impl<A: Arbitrary> Arbitrary for [A; 4]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 4]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 5]
impl<A: Arbitrary> Arbitrary for [A; 5]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 5]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 6]
impl<A: Arbitrary> Arbitrary for [A; 6]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 6]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 7]
impl<A: Arbitrary> Arbitrary for [A; 7]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 7]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 8]
impl<A: Arbitrary> Arbitrary for [A; 8]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 8]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 9]
impl<A: Arbitrary> Arbitrary for [A; 9]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 9]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 10]
impl<A: Arbitrary> Arbitrary for [A; 10]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 10]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 11]
impl<A: Arbitrary> Arbitrary for [A; 11]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 11]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 12]
impl<A: Arbitrary> Arbitrary for [A; 12]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 12]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 13]
impl<A: Arbitrary> Arbitrary for [A; 13]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 13]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 14]
impl<A: Arbitrary> Arbitrary for [A; 14]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 14]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 15]
impl<A: Arbitrary> Arbitrary for [A; 15]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 15]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 16]
impl<A: Arbitrary> Arbitrary for [A; 16]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 16]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 17]
impl<A: Arbitrary> Arbitrary for [A; 17]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 17]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 18]
impl<A: Arbitrary> Arbitrary for [A; 18]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 18]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 19]
impl<A: Arbitrary> Arbitrary for [A; 19]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 19]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 20]
impl<A: Arbitrary> Arbitrary for [A; 20]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 20]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 21]
impl<A: Arbitrary> Arbitrary for [A; 21]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 21]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 22]
impl<A: Arbitrary> Arbitrary for [A; 22]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 22]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 23]
impl<A: Arbitrary> Arbitrary for [A; 23]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 23]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 24]
impl<A: Arbitrary> Arbitrary for [A; 24]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 24]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 25]
impl<A: Arbitrary> Arbitrary for [A; 25]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 25]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 26]
impl<A: Arbitrary> Arbitrary for [A; 26]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 26]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 27]
impl<A: Arbitrary> Arbitrary for [A; 27]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 27]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 28]
impl<A: Arbitrary> Arbitrary for [A; 28]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 28]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 29]
impl<A: Arbitrary> Arbitrary for [A; 29]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 29]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 30]
impl<A: Arbitrary> Arbitrary for [A; 30]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 30]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 31]
impl<A: Arbitrary> Arbitrary for [A; 31]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 31]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for [A; 32]
impl<A: Arbitrary> Arbitrary for [A; 32]
type Parameters = <A as Arbitrary>::Parameters
type Strategy = UniformArrayStrategy<<A as Arbitrary>::Strategy, [A; 32]>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for bool
impl Arbitrary for bool
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for i8
impl Arbitrary for i8
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for i16
impl Arbitrary for i16
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for i32
impl Arbitrary for i32
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for i64
impl Arbitrary for i64
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for isize
impl Arbitrary for isize
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for u8
impl Arbitrary for u8
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for u16
impl Arbitrary for u16
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for u32
impl Arbitrary for u32
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for u64
impl Arbitrary for u64
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for usize
impl Arbitrary for usize
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for i128
impl Arbitrary for i128
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for u128
impl Arbitrary for u128
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for f32
impl Arbitrary for f32
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for f64
impl Arbitrary for f64
type Parameters = ()
type Strategy = Any
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for char
impl Arbitrary for char
type Parameters = ()
type Strategy = CharStrategy<'static>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for ()
impl Arbitrary for ()
type Parameters = ()
type Strategy = Just<()>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary> Arbitrary for (T0,)
impl<T0: Arbitrary> Arbitrary for (T0,)
type Parameters = (<T0 as Arbitrary>::Parameters,)
type Strategy = (<T0 as Arbitrary>::Strategy,)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary> Arbitrary for (T0, T1)
impl<T0: Arbitrary, T1: Arbitrary> Arbitrary for (T0, T1)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary> Arbitrary for (T0, T1, T2)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary> Arbitrary for (T0, T1, T2)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary> Arbitrary for (T0, T1, T2, T3)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary> Arbitrary for (T0, T1, T2, T3)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters, <T3 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy, <T3 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters, <T3 as Arbitrary>::Parameters, <T4 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy, <T3 as Arbitrary>::Strategy, <T4 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters, <T3 as Arbitrary>::Parameters, <T4 as Arbitrary>::Parameters, <T5 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy, <T3 as Arbitrary>::Strategy, <T4 as Arbitrary>::Strategy, <T5 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters, <T3 as Arbitrary>::Parameters, <T4 as Arbitrary>::Parameters, <T5 as Arbitrary>::Parameters, <T6 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy, <T3 as Arbitrary>::Strategy, <T4 as Arbitrary>::Strategy, <T5 as Arbitrary>::Strategy, <T6 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary, T7: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary, T7: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6, T7)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters, <T3 as Arbitrary>::Parameters, <T4 as Arbitrary>::Parameters, <T5 as Arbitrary>::Parameters, <T6 as Arbitrary>::Parameters, <T7 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy, <T3 as Arbitrary>::Strategy, <T4 as Arbitrary>::Strategy, <T5 as Arbitrary>::Strategy, <T6 as Arbitrary>::Strategy, <T7 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary, T7: Arbitrary, T8: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary, T7: Arbitrary, T8: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters, <T3 as Arbitrary>::Parameters, <T4 as Arbitrary>::Parameters, <T5 as Arbitrary>::Parameters, <T6 as Arbitrary>::Parameters, <T7 as Arbitrary>::Parameters, <T8 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy, <T3 as Arbitrary>::Strategy, <T4 as Arbitrary>::Strategy, <T5 as Arbitrary>::Strategy, <T6 as Arbitrary>::Strategy, <T7 as Arbitrary>::Strategy, <T8 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary, T7: Arbitrary, T8: Arbitrary, T9: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
impl<T0: Arbitrary, T1: Arbitrary, T2: Arbitrary, T3: Arbitrary, T4: Arbitrary, T5: Arbitrary, T6: Arbitrary, T7: Arbitrary, T8: Arbitrary, T9: Arbitrary> Arbitrary for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
type Parameters = (<T0 as Arbitrary>::Parameters, <T1 as Arbitrary>::Parameters, <T2 as Arbitrary>::Parameters, <T3 as Arbitrary>::Parameters, <T4 as Arbitrary>::Parameters, <T5 as Arbitrary>::Parameters, <T6 as Arbitrary>::Parameters, <T7 as Arbitrary>::Parameters, <T8 as Arbitrary>::Parameters, <T9 as Arbitrary>::Parameters)
type Strategy = (<T0 as Arbitrary>::Strategy, <T1 as Arbitrary>::Strategy, <T2 as Arbitrary>::Strategy, <T3 as Arbitrary>::Strategy, <T4 as Arbitrary>::Strategy, <T5 as Arbitrary>::Strategy, <T6 as Arbitrary>::Strategy, <T7 as Arbitrary>::Strategy, <T8 as Arbitrary>::Strategy, <T9 as Arbitrary>::Strategy)
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for EscapeDefault
impl Arbitrary for EscapeDefault
type Parameters = ()
type Strategy = Map<<u8 as Arbitrary>::Strategy, fn(u8) -> EscapeDefault>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Copy> Arbitrary for Cell<A>
impl<A: Arbitrary + Copy> Arbitrary for Cell<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = MapInto<<A as Arbitrary>::Strategy, Cell<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for RefCell<A>
impl<A: Arbitrary> Arbitrary for RefCell<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = MapInto<<A as Arbitrary>::Strategy, RefCell<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for UnsafeCell<A>
impl<A: Arbitrary> Arbitrary for UnsafeCell<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = MapInto<<A as Arbitrary>::Strategy, UnsafeCell<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for BorrowError
impl Arbitrary for BorrowError
type Parameters = ()
type Strategy = LazyJust<BorrowError, fn() -> BorrowError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for BorrowMutError
impl Arbitrary for BorrowMutError
type Parameters = ()
type Strategy = LazyJust<BorrowMutError, fn() -> BorrowMutError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Reverse<A>
impl<A: Arbitrary> Arbitrary for Reverse<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Reverse<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Ordering
impl Arbitrary for Ordering
type Parameters = ()
type Strategy = TupleUnion<((u32, Arc<Just<Ordering>>), (u32, Arc<Just<Ordering>>), (u32, Arc<Just<Ordering>>))>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Error
impl Arbitrary for Error
type Parameters = ()
type Strategy = Just<Error>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Once<A>
impl<A: Arbitrary> Arbitrary for Once<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Once<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Clone> Arbitrary for Repeat<A>
impl<A: Arbitrary + Clone> Arbitrary for Repeat<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Repeat<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Iterator + Clone> Arbitrary for Cycle<A>
impl<A: Arbitrary + Iterator + Clone> Arbitrary for Cycle<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Cycle<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Iterator> Arbitrary for Enumerate<A>
impl<A: Arbitrary + Iterator> Arbitrary for Enumerate<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Enumerate<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Iterator> Arbitrary for Fuse<A>
impl<A: Arbitrary + Iterator> Arbitrary for Fuse<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Fuse<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Iterator<Item = T>, T: Debug> Arbitrary for Peekable<A>
impl<A: Arbitrary + Iterator<Item = T>, T: Debug> Arbitrary for Peekable<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Peekable<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + DoubleEndedIterator> Arbitrary for Rev<A>
impl<A: Arbitrary + DoubleEndedIterator> Arbitrary for Rev<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Rev<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<'a, T: 'a + Clone, A: Arbitrary + Iterator<Item = &'a T>> Arbitrary for Cloned<A>
impl<'a, T: 'a + Clone, A: Arbitrary + Iterator<Item = &'a T>> Arbitrary for Cloned<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Cloned<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A> Arbitrary for Empty<A>
impl<A> Arbitrary for Empty<A>
type Parameters = ()
type Strategy = Just<Empty<A>>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Iterator, B: Arbitrary + Iterator> Arbitrary for Zip<A, B>
impl<A: Arbitrary + Iterator, B: Arbitrary + Iterator> Arbitrary for Zip<A, B>
type Parameters = (<A as Arbitrary>::Parameters, <B as Arbitrary>::Parameters)
type Strategy = Map<<(A, B) as Arbitrary>::Strategy, fn((A, B)) -> Zip<A, B>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<T, A: Arbitrary + Iterator<Item = T>, B: Arbitrary + Iterator<Item = T>> Arbitrary for Chain<A, B>
impl<T, A: Arbitrary + Iterator<Item = T>, B: Arbitrary + Iterator<Item = T>> Arbitrary for Chain<A, B>
type Parameters = (<A as Arbitrary>::Parameters, <B as Arbitrary>::Parameters)
type Strategy = Map<<(A, B) as Arbitrary>::Strategy, fn((A, B)) -> Chain<A, B>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Iterator> Arbitrary for Skip<A>
impl<A: Arbitrary + Iterator> Arbitrary for Skip<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<(A, usize) as Arbitrary>::Strategy, fn((A, usize)) -> Skip<A>>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Iterator> Arbitrary for Take<A>
impl<A: Arbitrary + Iterator> Arbitrary for Take<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<(A, usize) as Arbitrary>::Strategy, fn((A, usize)) -> Take<A>>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl<T: ?Sized> Arbitrary for PhantomData<T>
impl<T: ?Sized> Arbitrary for PhantomData<T>
type Parameters = ()
type Strategy = Just<PhantomData<T>>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Discriminant<A>
impl<A: Arbitrary> Arbitrary for Discriminant<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Discriminant<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for ParseFloatError
impl Arbitrary for ParseFloatError
type Parameters = ()
type Strategy = Just<ParseFloatError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for ParseIntError
impl Arbitrary for ParseIntError
type Parameters = ()
type Strategy = Just<ParseIntError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Wrapping<A>
impl<A: Arbitrary> Arbitrary for Wrapping<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Wrapping<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for FpCategory
impl Arbitrary for FpCategory
type Parameters = ()
type Strategy = TupleUnion<((u32, Arc<Just<FpCategory>>), (u32, Arc<Just<FpCategory>>), (u32, Arc<Just<FpCategory>>), (u32, Arc<Just<FpCategory>>), (u32, Arc<Just<FpCategory>>))>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Option<ParseError>
impl Arbitrary for Option<ParseError>
type Parameters = ()
type Strategy = Just<Option<Infallible>>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Option<A>
impl<A: Arbitrary> Arbitrary for Option<A>
type Parameters = (Probability, <A as Arbitrary>::Parameters)
type Strategy = OptionStrategy<<A as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for IntoIter<A>
impl<A: Arbitrary> Arbitrary for IntoIter<A>
type Parameters = <Option<A> as Arbitrary>::Parameters
type Strategy = Map<<Option<A> as Arbitrary>::Strategy, fn(Option<A>) -> IntoIter<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Result<A, ParseError>
impl<A: Arbitrary> Arbitrary for Result<A, ParseError>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Result<A, Infallible>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Result<ParseError, A>
impl<A: Arbitrary> Arbitrary for Result<ParseError, A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Result<Infallible, A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary, B: Arbitrary> Arbitrary for Result<A, B>
impl<A: Arbitrary, B: Arbitrary> Arbitrary for Result<A, B>
type Parameters = (Probability, <A as Arbitrary>::Parameters, <B as Arbitrary>::Parameters)
type Strategy = MaybeOk<<A as Arbitrary>::Strategy, <B as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for IntoIter<A>
impl<A: Arbitrary> Arbitrary for IntoIter<A>
type Parameters = <Result<A, ()> as Arbitrary>::Parameters
type Strategy = Map<<Result<A, ()> as Arbitrary>::Strategy, fn(Result<A, ()>) -> IntoIter<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Borrow<B>, B: ToOwned<Owned = A> + Debug + ?Sized> Arbitrary for Cow<'static, B>
impl<A: Arbitrary + Borrow<B>, B: ToOwned<Owned = A> + Debug + ?Sized> Arbitrary for Cow<'static, B>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Cow<'static, B>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Box<A>
impl<A: Arbitrary> Arbitrary for Box<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = MapInto<<A as Arbitrary>::Strategy, Box<A, Global>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for EscapeDebug
impl Arbitrary for EscapeDebug
type Parameters = ()
type Strategy = Map<<char as Arbitrary>::Strategy, fn(char) -> EscapeDebug>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for EscapeDefault
impl Arbitrary for EscapeDefault
type Parameters = ()
type Strategy = Map<<char as Arbitrary>::Strategy, fn(char) -> EscapeDefault>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for EscapeUnicode
impl Arbitrary for EscapeUnicode
type Parameters = ()
type Strategy = Map<<char as Arbitrary>::Strategy, fn(char) -> EscapeUnicode>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for DecodeUtf16<<Vec<u16> as IntoIterator>::IntoIter>
impl Arbitrary for DecodeUtf16<<Vec<u16> as IntoIterator>::IntoIter>
type Parameters = ()
type Strategy = Map<<Vec<u16, Global> as Arbitrary>::Strategy, fn(Vec<u16, Global>) -> DecodeUtf16<<Vec<u16, Global> as IntoIterator>::IntoIter>>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for ParseCharError
impl Arbitrary for ParseCharError
type Parameters = ()
type Strategy = IndFlatten<Map<<bool as Arbitrary>::Strategy, fn(bool) -> Just<ParseCharError>>>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for DecodeUtf16Error
impl Arbitrary for DecodeUtf16Error
type Parameters = ()
type Strategy = Map<Range<u16>, fn(<Range<u16> as Strategy>::Value) -> DecodeUtf16Error>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Vec<A>
impl<A: Arbitrary> Arbitrary for Vec<A>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters)
type Strategy = VecStrategy<<A as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Box<[A]>
impl<A: Arbitrary> Arbitrary for Box<[A]>
type Parameters = <Vec<A, Global> as Arbitrary>::Parameters
type Strategy = MapInto<<Vec<A, Global> as Arbitrary>::Strategy, Box<[A], Global>>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Rc<[A]>
impl<A: Arbitrary> Arbitrary for Rc<[A]>
type Parameters = <Vec<A, Global> as Arbitrary>::Parameters
type Strategy = MapInto<<Vec<A, Global> as Arbitrary>::Strategy, Rc<[A]>>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Arc<[A]>
impl<A: Arbitrary> Arbitrary for Arc<[A]>
type Parameters = <Vec<A, Global> as Arbitrary>::Parameters
type Strategy = MapInto<<Vec<A, Global> as Arbitrary>::Strategy, Arc<[A]>>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for VecDeque<A>
impl<A: Arbitrary> Arbitrary for VecDeque<A>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters)
type Strategy = VecDequeStrategy<<A as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for LinkedList<A>
impl<A: Arbitrary> Arbitrary for LinkedList<A>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters)
type Strategy = LinkedListStrategy<<A as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Ord> Arbitrary for BTreeSet<A>
impl<A: Arbitrary + Ord> Arbitrary for BTreeSet<A>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters)
type Strategy = BTreeSetStrategy<<A as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Ord> Arbitrary for BinaryHeap<A>
impl<A: Arbitrary + Ord> Arbitrary for BinaryHeap<A>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters)
type Strategy = BinaryHeapStrategy<<A as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Hash + Eq> Arbitrary for HashSet<A>
impl<A: Arbitrary + Hash + Eq> Arbitrary for HashSet<A>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters)
type Strategy = HashSetStrategy<<A as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for IntoIter<A>
impl<A: Arbitrary> Arbitrary for IntoIter<A>
type Parameters = <Vec<A, Global> as Arbitrary>::Parameters
type Strategy = Map<<Vec<A, Global> as Arbitrary>::Strategy, fn(Vec<A, Global>) -> IntoIter<A, Global>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for IntoIter<A>
impl<A: Arbitrary> Arbitrary for IntoIter<A>
type Parameters = <VecDeque<A, Global> as Arbitrary>::Parameters
type Strategy = Map<<VecDeque<A, Global> as Arbitrary>::Strategy, fn(VecDeque<A, Global>) -> IntoIter<A, Global>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for IntoIter<A>
impl<A: Arbitrary> Arbitrary for IntoIter<A>
type Parameters = <LinkedList<A> as Arbitrary>::Parameters
type Strategy = Map<<LinkedList<A> as Arbitrary>::Strategy, fn(LinkedList<A>) -> IntoIter<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Ord> Arbitrary for IntoIter<A>
impl<A: Arbitrary + Ord> Arbitrary for IntoIter<A>
type Parameters = <BTreeSet<A, Global> as Arbitrary>::Parameters
type Strategy = Map<<BTreeSet<A, Global> as Arbitrary>::Strategy, fn(BTreeSet<A, Global>) -> IntoIter<A, Global>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Ord> Arbitrary for IntoIter<A>
impl<A: Arbitrary + Ord> Arbitrary for IntoIter<A>
type Parameters = <BinaryHeap<A> as Arbitrary>::Parameters
type Strategy = Map<<BinaryHeap<A> as Arbitrary>::Strategy, fn(BinaryHeap<A>) -> IntoIter<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Hash + Eq> Arbitrary for IntoIter<A>
impl<A: Arbitrary + Hash + Eq> Arbitrary for IntoIter<A>
type Parameters = <HashSet<A, RandomState> as Arbitrary>::Parameters
type Strategy = Map<<HashSet<A, RandomState> as Arbitrary>::Strategy, fn(HashSet<A, RandomState>) -> IntoIter<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Hash + Eq, B: Arbitrary> Arbitrary for HashMap<A, B>
impl<A: Arbitrary + Hash + Eq, B: Arbitrary> Arbitrary for HashMap<A, B>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters, <B as Arbitrary>::Parameters)
type Strategy = HashMapStrategy<<A as Arbitrary>::Strategy, <B as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Hash + Eq, B: Arbitrary> Arbitrary for IntoIter<A, B>
impl<A: Arbitrary + Hash + Eq, B: Arbitrary> Arbitrary for IntoIter<A, B>
type Parameters = <HashMap<A, B, RandomState> as Arbitrary>::Parameters
type Strategy = Map<<HashMap<A, B, RandomState> as Arbitrary>::Strategy, fn(HashMap<A, B, RandomState>) -> IntoIter<A, B>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Ord, B: Arbitrary> Arbitrary for BTreeMap<A, B>
impl<A: Arbitrary + Ord, B: Arbitrary> Arbitrary for BTreeMap<A, B>
type Parameters = (SizeRange, <A as Arbitrary>::Parameters, <B as Arbitrary>::Parameters)
type Strategy = BTreeMapStrategy<<A as Arbitrary>::Strategy, <B as Arbitrary>::Strategy>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Ord, B: Arbitrary> Arbitrary for IntoIter<A, B>
impl<A: Arbitrary + Ord, B: Arbitrary> Arbitrary for IntoIter<A, B>
type Parameters = <BTreeMap<A, B, Global> as Arbitrary>::Parameters
type Strategy = Map<<BTreeMap<A, B, Global> as Arbitrary>::Strategy, fn(BTreeMap<A, B, Global>) -> IntoIter<A, B, Global>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Bound<A>
impl<A: Arbitrary> Arbitrary for Bound<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = TupleUnion<((u32, Arc<Map<Arc<<A as Arbitrary>::Strategy>, fn(<Arc<<A as Arbitrary>::Strategy> as Strategy>::Value) -> Bound<A>>>), (u32, Arc<Map<Arc<<A as Arbitrary>::Strategy>, fn(<Arc<<A as Arbitrary>::Strategy> as Strategy>::Value) -> Bound<A>>>), (u32, Arc<LazyJust<Bound<A>, fn() -> Bound<A>>>))>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<H: Default + Hasher> Arbitrary for BuildHasherDefault<H>
impl<H: Default + Hasher> Arbitrary for BuildHasherDefault<H>
type Parameters = ()
type Strategy = Just<BuildHasherDefault<H>>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for DefaultHasher
impl Arbitrary for DefaultHasher
type Parameters = ()
type Strategy = LazyJust<DefaultHasher, fn() -> DefaultHasher>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for RandomState
impl Arbitrary for RandomState
type Parameters = ()
type Strategy = LazyJust<RandomState, fn() -> RandomState>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for RangeFull
impl Arbitrary for RangeFull
type Parameters = ()
type Strategy = Just<RangeFull>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for RangeFrom<A>
impl<A: Arbitrary> Arbitrary for RangeFrom<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> RangeFrom<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for RangeTo<A>
impl<A: Arbitrary> Arbitrary for RangeTo<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> RangeTo<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for RangeToInclusive<A>
impl<A: Arbitrary> Arbitrary for RangeToInclusive<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> RangeToInclusive<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: PartialOrd + Arbitrary> Arbitrary for RangeInclusive<A>
impl<A: PartialOrd + Arbitrary> Arbitrary for RangeInclusive<A>
type Parameters = (<A as Arbitrary>::Parameters, <A as Arbitrary>::Parameters)
type Strategy = Map<<(A, A) as Arbitrary>::Strategy, fn((A, A)) -> RangeInclusive<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: PartialOrd + Arbitrary> Arbitrary for Range<A>
impl<A: PartialOrd + Arbitrary> Arbitrary for Range<A>
type Parameters = (<A as Arbitrary>::Parameters, <A as Arbitrary>::Parameters)
type Strategy = Map<<(A, A) as Arbitrary>::Strategy, fn((A, A)) -> Range<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Rc<A>
impl<A: Arbitrary> Arbitrary for Rc<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = MapInto<<A as Arbitrary>::Strategy, Rc<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for ParseBoolError
impl Arbitrary for ParseBoolError
type Parameters = ()
type Strategy = Just<ParseBoolError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Utf8Error
impl Arbitrary for Utf8Error
type Parameters = ()
type Strategy = Map<(<u16 as Arbitrary>::Strategy, TupleUnion<((u32, Arc<Just<&'static [u8]>>), (u32, Arc<Just<&'static [u8]>>), (u32, Arc<Just<&'static [u8]>>), (u32, Arc<Just<&'static [u8]>>))>), fn(<(<u16 as Arbitrary>::Strategy, TupleUnion<((u32, Arc<Just<&'static [u8]>>), (u32, Arc<Just<&'static [u8]>>), (u32, Arc<Just<&'static [u8]>>), (u32, Arc<Just<&'static [u8]>>))>) as Strategy>::Value) -> Utf8Error>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Arc<A>
impl<A: Arbitrary> Arbitrary for Arc<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = MapInto<<A as Arbitrary>::Strategy, Arc<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for AtomicBool
impl Arbitrary for AtomicBool
type Parameters = ()
type Strategy = Map<<bool as Arbitrary>::Strategy, fn(bool) -> AtomicBool>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for AtomicIsize
impl Arbitrary for AtomicIsize
type Parameters = ()
type Strategy = Map<<isize as Arbitrary>::Strategy, fn(isize) -> AtomicIsize>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for AtomicUsize
impl Arbitrary for AtomicUsize
type Parameters = ()
type Strategy = Map<<usize as Arbitrary>::Strategy, fn(usize) -> AtomicUsize>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Args
impl Arbitrary for Args
type Parameters = ()
type Strategy = LazyJust<Args, fn() -> Args>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for ArgsOs
impl Arbitrary for ArgsOs
type Parameters = ()
type Strategy = LazyJust<ArgsOs, fn() -> ArgsOs>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Vars
impl Arbitrary for Vars
type Parameters = ()
type Strategy = LazyJust<Vars, fn() -> Vars>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for VarsOs
impl Arbitrary for VarsOs
type Parameters = ()
type Strategy = LazyJust<VarsOs, fn() -> VarsOs>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for JoinPathsError
impl Arbitrary for JoinPathsError
type Parameters = ()
type Strategy = LazyJust<JoinPathsError, fn() -> JoinPathsError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for VarError
impl Arbitrary for VarError
type Parameters = ()
type Strategy = TupleUnion<((u32, Arc<Just<VarError>>), (u32, Arc<Map<BoxedStrategy<OsString>, fn(<BoxedStrategy<OsString> as Strategy>::Value) -> VarError>>))>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for CString
impl Arbitrary for CString
type Parameters = SizeRange
type Strategy = Map<VecStrategy<RangeInclusive<u8>>, fn(<VecStrategy<RangeInclusive<u8>> as Strategy>::Value) -> CString>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for OsString
impl Arbitrary for OsString
type Parameters = <String as Arbitrary>::Parameters
type Strategy = MapInto<<String as Arbitrary>::Strategy, OsString>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Box<CStr>
impl Arbitrary for Box<CStr>
type Parameters = SizeRange
type Strategy = MapInto<<CString as Arbitrary>::Strategy, Box<CStr, Global>>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Box<OsStr>
impl Arbitrary for Box<OsStr>
type Parameters = <String as Arbitrary>::Parameters
type Strategy = MapInto<<OsString as Arbitrary>::Strategy, Box<OsStr, Global>>
fn arbitrary_with(a: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for FromBytesWithNulError
impl Arbitrary for FromBytesWithNulError
type Parameters = ()
type Strategy = Map<<Option<u16> as Arbitrary>::Strategy, fn(Option<u16>) -> FromBytesWithNulError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for IntoStringError
impl Arbitrary for IntoStringError
type Parameters = ()
type Strategy = Map<BoxedStrategy<Vec<u8, Global>>, fn(<BoxedStrategy<Vec<u8, Global>> as Strategy>::Value) -> IntoStringError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for DirBuilder
impl Arbitrary for DirBuilder
type Parameters = ()
type Strategy = Map<<bool as Arbitrary>::Strategy, fn(bool) -> DirBuilder>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Read> Arbitrary for BufReader<A>
impl<A: Arbitrary + Read> Arbitrary for BufReader<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<(A, Option<u16>) as Arbitrary>::Strategy, fn((A, Option<u16>)) -> BufReader<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Write> Arbitrary for BufWriter<A>
impl<A: Arbitrary + Write> Arbitrary for BufWriter<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<(A, Option<u16>) as Arbitrary>::Strategy, fn((A, Option<u16>)) -> BufWriter<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + Write> Arbitrary for LineWriter<A>
impl<A: Arbitrary + Write> Arbitrary for LineWriter<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<(A, Option<u16>) as Arbitrary>::Strategy, fn((A, Option<u16>)) -> LineWriter<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Read + Arbitrary, B: Read + Arbitrary> Arbitrary for Chain<A, B>
impl<A: Read + Arbitrary, B: Read + Arbitrary> Arbitrary for Chain<A, B>
type Parameters = (<A as Arbitrary>::Parameters, <B as Arbitrary>::Parameters)
type Strategy = Map<<(A, B) as Arbitrary>::Strategy, fn((A, B)) -> Chain<A, B>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for Cursor<A>
impl<A: Arbitrary> Arbitrary for Cursor<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Cursor<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Empty
impl Arbitrary for Empty
type Parameters = ()
type Strategy = LazyJust<Empty, fn() -> Empty>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Sink
impl Arbitrary for Sink
type Parameters = ()
type Strategy = LazyJust<Sink, fn() -> Sink>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Stderr
impl Arbitrary for Stderr
type Parameters = ()
type Strategy = LazyJust<Stderr, fn() -> Stderr>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Stdin
impl Arbitrary for Stdin
type Parameters = ()
type Strategy = LazyJust<Stdin, fn() -> Stdin>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Stdout
impl Arbitrary for Stdout
type Parameters = ()
type Strategy = LazyJust<Stdout, fn() -> Stdout>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary + BufRead> Arbitrary for Lines<A>
impl<A: Arbitrary + BufRead> Arbitrary for Lines<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> Lines<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Repeat
impl Arbitrary for Repeat
type Parameters = ()
type Strategy = Map<<u8 as Arbitrary>::Strategy, fn(u8) -> Repeat>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: BufRead + Arbitrary> Arbitrary for Split<A>
impl<A: BufRead + Arbitrary> Arbitrary for Split<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<(A, u8) as Arbitrary>::Strategy, fn((A, u8)) -> Split<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Read + Arbitrary> Arbitrary for Take<A>
impl<A: Read + Arbitrary> Arbitrary for Take<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<(A, u64) as Arbitrary>::Strategy, fn((A, u64)) -> Take<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for ErrorKind
impl Arbitrary for ErrorKind
type Parameters = ()
type Strategy = Union<Just<ErrorKind>>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for SeekFrom
impl Arbitrary for SeekFrom
type Parameters = ()
type Strategy = TupleUnion<((u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(u64) -> SeekFrom>>), (u32, Arc<Map<<i64 as Arbitrary>::Strategy, fn(i64) -> SeekFrom>>), (u32, Arc<Map<<i64 as Arbitrary>::Strategy, fn(i64) -> SeekFrom>>))>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for AddrParseError
impl Arbitrary for AddrParseError
type Parameters = ()
type Strategy = Just<AddrParseError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for SocketAddrV4
impl Arbitrary for SocketAddrV4
type Parameters = ()
type Strategy = Map<<(Ipv4Addr, u16) as Arbitrary>::Strategy, fn((Ipv4Addr, u16)) -> SocketAddrV4>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for SocketAddrV6
impl Arbitrary for SocketAddrV6
type Parameters = ()
type Strategy = Map<<(Ipv6Addr, u16, u32, u32) as Arbitrary>::Strategy, fn((Ipv6Addr, u16, u32, u32)) -> SocketAddrV6>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for Shutdown
impl Arbitrary for Shutdown
type Parameters = ()
type Strategy = TupleUnion<((u32, Arc<Just<Shutdown>>), (u32, Arc<Just<Shutdown>>), (u32, Arc<Just<Shutdown>>))>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for SocketAddr
impl Arbitrary for SocketAddr
type Parameters = ()
type Strategy = TupleUnion<((u32, Arc<MapInto<<SocketAddrV4 as Arbitrary>::Strategy, SocketAddr>>), (u32, Arc<MapInto<<SocketAddrV6 as Arbitrary>::Strategy, SocketAddr>>))>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl<A: Arbitrary> Arbitrary for AssertUnwindSafe<A>
impl<A: Arbitrary> Arbitrary for AssertUnwindSafe<A>
type Parameters = <A as Arbitrary>::Parameters
type Strategy = Map<<A as Arbitrary>::Strategy, fn(A) -> AssertUnwindSafe<A>>
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for StripPrefixError
impl Arbitrary for StripPrefixError
type Parameters = ()
type Strategy = Just<StripPrefixError>
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Arbitrary for String
impl Arbitrary for String
sourcefn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
Panics
This implementation panics if the input is not a valid regex proptest can handle.