Closed shepmaster closed 2 years ago
I don't see why not! We could probably add a generation(&self)
method to return the generation, probably no harm in doing so.
it's not possible to get the generation out of an
Index
I guess this isn't technically true, as I could use Index::to_bits
and extract the generation; that seems like reasonable justification that it could stand as a separate method.
I have a few
thunderdome::Arena
s so I'm wrapping theIndex
in my own newtypes to keep things manageable. That means that myDebug
output looks like:I'd prefer to use something a bit shorter:
However, it's not possible to get the generation out of an
Index
for use in my ownDebug
implementation. I assume there's good reasons for that, so this suggestion may go nowhere, but it's worth asking!