(&self, variant_index: u8)
| 43 | // C style enums don't require length, so we can skip making a histogram for them. |
| 44 | impl<'a, const N: usize> VariantDecoder<'a, N, false> { |
| 45 | pub fn length(&self, variant_index: u8) -> usize { |
| 46 | self.histogram[variant_index as usize] |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | impl<'a, const N: usize, const C_STYLE: bool> View<'a> for VariantDecoder<'a, N, C_STYLE> { |