ToUint64 returns the value of `n` as a `uint64`. If the value has overflowed, it returns `(math.MaxUint64, true)`.
()
| 70 | // ToUint64 returns the value of `n` as a `uint64`. If the value has |
| 71 | // overflowed, it returns `(math.MaxUint64, true)`. |
| 72 | func (n Count64) ToUint64() (uint64, bool) { |
| 73 | return uint64(n), n == math.MaxUint64 |
| 74 | } |
| 75 | |
| 76 | // Plus returns the sum of two Count64s, capped at math.MaxUint64. |
| 77 | func (n1 Count64) Plus(n2 Count64) Count64 { |