Closed oilel closed 1 year ago
It's a no-op with any opt-level > 0. It's just a transmute.
It's a no-op with any opt-level > 0
So why aren't arrays or vectors generic, in Rust standard library?
I don't fully understand your question. Currently, in pre-1.0 versions of generic-array
, it was designed to be used in versions of Rust without const-generics, so for what size of arrays are supported with From
is limited.
How fast is GenericArray::from()?