Hacker News new | ask | show | jobs
by wmedrano 107 days ago
Ok in theory, but I don't think it applies here. Maybe it does in a cultural way.

Arrayref seems somewhat niche, but its kind of in the standard library as of Jan 2026 as std::slice::as_array https://doc.rust-lang.org/std/primitive.slice.html#method.as...

1 comments

For the example given in the arrayref docs, I'd say you should be using std::slice::as_chunks, stabilized in 1.88: https://doc.rust-lang.org/std/primitive.slice.html#method.as...