pub struct TransactionGen<V: Arbitrary + Debug + 'static + Clone> { /* private fields */ }
Implementations§
source§impl<V: Arbitrary + Debug + Clone> TransactionGen<V>
impl<V: Arbitrary + Debug + Clone> TransactionGen<V>
pub fn materialize<K: Clone + Eq + Ord>( self, universe: &[K] ) -> Transaction<K, V>
Trait Implementations§
source§impl<V: Arbitrary + Debug + 'static + Clone + Debug> Arbitrary for TransactionGen<V>
impl<V: Arbitrary + Debug + 'static + Clone + Debug> Arbitrary for TransactionGen<V>
§type Parameters = TransactionGenParams
type Parameters = TransactionGenParams
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(BoxedStrategy<Vec<(Index, Option<V>), Global>>, BoxedStrategy<Vec<Index, Global>>), fn(_: (Vec<(Index, Option<V>), Global>, Vec<Index, Global>)) -> TransactionGen<V>>
type Strategy = Map<(BoxedStrategy<Vec<(Index, Option<V>), Global>>, BoxedStrategy<Vec<Index, Global>>), fn(_: (Vec<(Index, Option<V>), Global>, Vec<Index, Global>)) -> TransactionGen<V>>
The type of
Strategy
used to generate values of type Self
.