News for hackers. Stuff that matters.
Re:2 years of fiddling with Rust – critical thoughts by duckerude on Monday November 07, 2022 @02:29AM (#33502358)
> If the user really wants, they can make a custom slice wrapper that implements the `Index` trait in a way that returns `Option`.

You can't, because indexing is required to return a reference. It's hard to get creative.

There are no comments on this comment yet.