pub fn make_eci(assignval: u32) -> Self {
        let mut bb = BitBuffer(Vec::with_capacity(24));
        if assignval < (1 << 7) {
            bb.append_bits(assignval, 8);
        } else if assignval < (1 << 14) {
            bb.append_bits(0b10, 2);
            bb.append_bits(assignval, 14);
        } else if assignval < 1_000_000 {
            bb.append_bits(0b110, 3);
            bb.append_bits(assignval, 21);
        } else {
            panic!("ECI assignment value out of range");
        }
        QrSegment::new(QrSegmentMode::Eci, 0, bb.0)
    }
/// Returns a segment representing an Extended Channel Interpretation
/// (ECI) designator with the given assignment value.
Returns a segment representing an Extended Channel Interpretation
(ECI) designator with the given assignment value.
Returns a segment representing an Extended Channel Interpretation ( ECI ) designator with the given assignment value .
pub fn make_eci(assignval: u32) -> Self {
        let mut bb = BitBuffer(Vec::with_capacity(24));
        if assignval < (1 << 7) {
            bb.append_bits(assignval, 8);
        } else if assignval < (1 << 14) {
            bb.append_bits(0b10, 2);
            bb.append_bits(assignval, 14);
        } else if assignval < 1_000_000 {
            bb.append_bits(0b110, 3);
            bb.append_bits(assignval, 21);
        } else {
            panic!("ECI assignment value out of range");
        }
        QrSegment::new(QrSegmentMode::Eci, 0, bb.0)
    }
pub fn make_eci ( assignval : u32 ) -> Self { let mut bb = BitBuffer ( Vec :: with_capacity ( 24 ) ) ; if assignval < ( 1 << 7 ) { bb . append_bits ( assignval , 8 ) ; } else if assignval < ( 1 << 14 ) { bb . append_bits ( 0b10 , 2 ) ; bb . append_bits ( assignval , 14 ) ; } else if assignval < 1_000_000 { bb . append_bits ( 0b110 , 3 ) ; bb . append_bits ( assignval , 21 ) ; } else { panic ! ( " " ) ; } QrSegment :: new ( QrSegmentMode :: Eci , 0 , bb . 0 ) }
Returns a segment representing an Extended Channel Interpretation
(ECI) designator with the given assignment value.
Returns a segment representing an Extended Channel Interpretation ( ECI ) designator with the given assignment value .
assignval
u32