It would be good that the MultiIndex index function signature, instead of being fn(&T) -> IK, was fn(&PK, &T) -> IK instead.
That way, the pk (or parts of it) can be used for indexing. And so the index keys don't have / need to come from the values alone.
It would be good that the
MultiIndexindex function signature, instead of beingfn(&T) -> IK, wasfn(&PK, &T) -> IKinstead.That way, the pk (or parts of it) can be used for indexing. And so the index keys don't have / need to come from the values alone.