update iterator types and fn pointers to Rust master
Merge pull request #39 from apasel422/fixes

update iterator types and fn pointers to Rust master