3 ms·
This particular crate (arrayref) seems pretty niche, but also doable in std now. It lets you take a slice `&[T]` and return a slice with a known number of elem
by wmedrano 1mo ago
This particular crate (arrayref) seems pretty niche, but also doable in std now.
It lets you take a slice `&[T]` and return a slice with a known number of elements`&[T; N]`. tiny-skia was probably using this to get some SIMD optimizations.
As of Jan 2026, this seems to be in the standard library under slice::as_array https://doc.rust-lang.org/std/primitive.slice.html#method.as_array https://doc.rust-lang.org/std/primitive.slice.html#method.as...