Added iter_to_vec conversion fn
auto merge of #5818 : Kimundi/rust/iter_to_vec, r=catamorphism