(self)
| 66 | |
| 67 | impl NullPercent { |
| 68 | pub fn null_every(self) -> Option<usize> { |
| 69 | match self { |
| 70 | NullPercent::Zero => None, |
| 71 | NullPercent::Fifteen => Some(7), // 1-in-7 ≈ 14.3 % |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | /// Fraction of `size` that becomes the number of distinct dictionary entries. |