| Age | Commit message (Collapse) | Author | Lines |
|
Finally got to the main motivating example from the MCP :)
|
|
All the same reasons as for `[T]`: more general, less pointer chasing, and `&mut IndexSlice` emphasizes that it doesn't change *length*.
|
|
Since structs are always `VariantIdx(0)`, there's a bunch of files where the only reason they had `VariantIdx` or `vec::Idx` imported at all was to get the first variant.
So this uses a constant for that, and adds some doc-comments to `VariantIdx` while I'm there, since it doesn't have any today.
|
|
Specifically remove V, which can always be VariantIdx, and F, which can
always be Layout.
|
|
|
|
|
|
|