Closed Ogeon closed 1 year ago
There are still a few pieces left, but it's time to stop for today.
I believe this fulfills the initial requirements and some more. :slightly_smiling_face: I struggled a bit with coming up with a good example, so that may be improved later.
bors r+
This adds a set of iterators and utilities for converting between arrays of structs and structs of arrays. There's definitely more that can be done, but it's a start. This pull request includes:
ColorType<Collection<T>>
from anyIntoIterator<Item=ColorType<T>>
.ColorType<Collection<T>>
.Vec
functions are available forColorType<Vec<T>>
, with more that can be added.get
andget_mut
.ColorType<&T>
andColorType<&mut T>
, usingcopied
,cloned
andset
.See the discussion in #303 for some background.
Closed Issues