One of the big advantages of PrimaryMap is that it protects against using the wrong indices via a distinct index type. A Deref trait that returns a plain slice would accept other indices. Add a comment explaining this.
One of the big advantages of PrimaryMap is that it protects against using the wrong indices via a distinct index type. A Deref trait that returns a plain slice would accept other indices. Add a comment explaining this.