Enumerations: how are they stored and other questions

Ideally it should be -∞:

  • 2-∞ = 0, log 0 = -∞
  • size of (u32, Never) would be 4 + (-∞) = -∞

Unfortunately -∞ doesn't fit in usize.

4 Likes