4 ms·
Actually, Rust arrays have the size as part of their type, and without type-level-integers, there is a lot of pain around them. :( That said, there's the solut
by steveklabnik 11y ago
Actually, Rust arrays have the size as part of their type, and without type-level-integers, there is a lot of pain around them. :(
That said, there's the solution: type level integers.
(That also said, Rust's String type isn't an array, because it's mutable, so the size can't be a part of the type)