pub fn num_char_count_bits(self, ver: Version) -> u8 {
        use QrSegmentMode::*;
        (match self {
            Numeric => [10, 12, 14],
            Alphanumeric => [9, 11, 13],
            Byte => [8, 16, 16],
            Kanji => [8, 10, 12],
            Eci => [0, 0, 0],
        })[usize::from((ver.value() + 7) / 17)]
    }
// Returns the bit width of the character count field for a segment in this mode
// in a QR Code at the given version number. The result is in the range [0, 16].
Returns the bit width of the character count field for a segment in this mode
in a QR Code at the given version number. The result is in the range [0, 16].
Returns the bit width of the character count field for a segment in this mode in a QR Code at the given version number . The result is in the range [ 0 16 ] .
pub fn num_char_count_bits(self, ver: Version) -> u8 {
        use QrSegmentMode::*;
        (match self {
            Numeric => [10, 12, 14],
            Alphanumeric => [9, 11, 13],
            Byte => [8, 16, 16],
            Kanji => [8, 10, 12],
            Eci => [0, 0, 0],
        })[usize::from((ver.value() + 7) / 17)]
    }
pub fn num_char_count_bits ( self , ver : Version ) -> u8 { use QrSegmentMode :: * ; ( match self { Numeric => [ 10 , 12 , 14 ] , Alphanumeric => [ 9 , 11 , 13 ] , Byte => [ 8 , 16 , 16 ] , Kanji => [ 8 , 10 , 12 ] , Eci => [ 0 , 0 , 0 ] , } ) [ usize :: from ( ( ver . value ( ) + 7 ) / 17 ) ] }
Returns the bit width of the character count field for a segment in this mode
in a QR Code at the given version number.
Returns the bit width of the character count field for a segment in this mode in a QR Code at the given version number .
self
ver
Version