/// The function returns a vector containing the given number of arbitrary
/// node IDs in a BoxedStrategy.
The function returns a vector containing the given number of arbitrary
node IDs in a BoxedStrategy.
The function returns a vector containing the given number of arbitrary node IDs in a BoxedStrategy .
fn arb_peer_list(min_size: usize) -> BoxedStrategy<Vec<NodeId>> {
        prop::collection::hash_set(arbitrary_node_id(), min_size..100)
            .prop_map(|hs| hs.into_iter().collect())
            .boxed()
    }
fn arb_peer_list ( min_size : usize ) -> BoxedStrategy < Vec < NodeId > > { prop :: collection :: hash_set ( arbitrary_node_id ( ) , min_size .. 100 ) . prop_map ( | hs | hs . into_iter ( ) . collect ( ) ) . boxed ( ) }
The function returns a vector containing the given number of arbitrary
node IDs in a BoxedStrategy.
The function returns a vector containing the given number of arbitrary node IDs in a BoxedStrategy .
min_size
usize