#5 Add a general instance based off a newtype around something with a FiniteBits instance

Closed
opened 5 years ago by koz.ross · 1 comments
Koz Ross commented 5 years ago

We can enumerate something like that without having maths operations available. Some kind of Gray code, or ranking-unranking ops, might be just the ticket here.

We can enumerate something like that without having maths operations available. Some kind of Gray code, or ranking-unranking ops, might be just the ticket here.
Koz Ross commented 5 years ago
Owner

This is actually not possible, as we can't promote finiteBitSize in the context of an associated type, possibly at all, and definitely without something like singletons.

This is actually not possible, as we can't promote ``finiteBitSize`` in the context of an associated type, possibly at all, and _definitely_ without something like ``singletons``.
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.