Actions
Bug #5278
closedapp-layer: Allow for non slice based transaction containers in generate get iterator (rust)
Affected Versions:
Effort:
Difficulty:
Label:
Description
The trait and generic setup for Rust parsers to return an interator depends on the transactions being available in a slice, which doesn't work for non-vec container types like a VecDeque
. I think we can make these even more generic with the following trait methods:
/// Return the number of transactions in the collection. get_tx_count() -> usize; /// Get a transaction by its index in the collection. get_transaction_by_index(index: usize) -> Tx;
I think we already have a get_tx_count
. This will work generic over vector and VecDeque transaction containers.
Actions