I have a fairly large "list" of structs which I originally collected as Vec<T>.
Now, I am considering to change this to a Rc<[T]>. In some cases I need to select a specific element from this Rc<[T]>, for which I need to iterate over the slice.
Is there a better way than calling .iter() on the Rc<[T]> and if not, am I just wasting the performance gains from the Rc<[T]> and should instead be using a Vec<T>?
.iter() on Rc<[T]> is the exact same as on Vec<T>
this iter() is defined on [T] and both Rc<[T]> and Vec<T> just call it
Thank you.