I want to have the option to return 2 completely different complex orders from an iterator. (referring to complex as not only reversed and normal order)
What would be the best way to accomplish this, i could have a method that saves the state before hand like:
/*for simple order*/
data_struct_instance.select_iter(data_struct_order::Simple);
let iter_simple = data_struct_instance.iter();
/*for complex order 1*/
data_struct_instance.select_iter(data_struct_order::Complex1);
let iter_complex1 = data_struct_instance.iter();
But i would rather avoid the internal state generated by the method .select_iter()
is there a better way to accomplish this.