multiversx/mx-sdk-rs

Collections' `Iter` types are not accessible by SDK users

olexander-movchan opened this issue · 0 comments

Collections like SetMapper, MapMapper, etc. all implement .iter() methods, but returned types (Iter) are hidden in private modules.

This issue makes it inconvenient to store iterators in user-defined structs, or use iterator types as a concrete type for user-defined traits. One could use Box<dyn Iteartor>, but that is inconvenient, inefficient, and can be problematic in no_std crates.