4 ms·
> 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
by duckerude 4y ago
> 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.