Closed msmorgan closed 3 years ago
i could probably accept a PR for this if it doesn't conflict with any of the other From impls (there's a few already).
In the meantime I think you can probably do this with
slice.iter().collect()
Should it truncate the slice to its storage length, or would it be preferable to panic if the slice is too long?
i think the other impls overflow and panic, so the from impl should do the same.
Ah, excellent. Yeah, then TryFrom should be used.
It would be useful to me to have such an implementation, or else a method that specifically writes a slice to a new ArrayVec.