Struct diem_types::proptest_types::LedgerInfoGen
source · pub struct LedgerInfoGen { /* private fields */ }
Implementations§
source§impl LedgerInfoGen
impl LedgerInfoGen
pub fn materialize( self, universe: &mut AccountInfoUniverse, block_size: usize ) -> LedgerInfo
Trait Implementations§
source§impl Arbitrary for LedgerInfoGen
impl Arbitrary for LedgerInfoGen
§type Parameters = (<BlockInfoGen as Arbitrary>::Parameters, <HashValue as Arbitrary>::Parameters)
type Parameters = (<BlockInfoGen as Arbitrary>::Parameters, <HashValue as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<BlockInfoGen as Arbitrary>::Strategy, <HashValue as Arbitrary>::Strategy), fn(_: (BlockInfoGen, HashValue)) -> LedgerInfoGen>
type Strategy = Map<(<BlockInfoGen as Arbitrary>::Strategy, <HashValue as Arbitrary>::Strategy), fn(_: (BlockInfoGen, HashValue)) -> LedgerInfoGen>
The type of
Strategy
used to generate values of type Self
.