Closed HadrienG2 closed 1 year ago
Aren't these already supported?
https://docs.rs/slipstream/latest/slipstream/vector/struct.Vector.html#method.new https://docs.rs/slipstream/latest/slipstream/vector/struct.Vector.html#method.store
Or, maybe I don't understand what you need here. Can you elaborate?
I meant having impl<A, T, N> From<[T; N]> for Vector<A, T, N>
and impl<A, T, N> From<Vector<A, T, N>> for [T; N]
.
They can indeed be implemented in terms of existing methods but...
Vector::data
array member at ~guaranteed zero cost.Again, no objection to these existing (unless they conflict with something in the crate already ‒ I wonder why I didn't put them in in the first place; but maybe it was because the crate started before const generics existed). But no time to implement them (you see how long it takes me just to get around responding :-( ).
It would be very nice to be able to convert slipstream vectors to and from matching array types using standard From impls, as allowed by most other SIMD libraries I've played with.