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

Закриті
5 роки тому відкрито koz.ross · 1 коментарів
Koz Ross відкоментовано 5 роки тому

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 відкоментовано 5 роки тому
Власник

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``.
Підпишіться щоб приєднатися до обговорення.
Етап відсутній
Немає відповідального
1 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.