pub fn new(mode: QrSegmentMode, numchars: usize, data: Vec<bool>) -> Self {
        Self {
            mode,
            numchars,
            data,
        }
    }
/// Creates a new QR Code segment with the given attributes and data.
///
/// The character count (numchars) must agree with the mode and
/// the bit buffer length, but the constraint isn't checked.
Creates a new QR Code segment with the given attributes and data.
The character count (numchars) must agree with the mode and
the bit buffer length, but the constraint isn't checked.
Creates a new QR Code segment with the given attributes and data . The character count ( numchars ) must agree with the mode and the bit buffer length but the constraint isn ' t checked .
pub fn new(mode: QrSegmentMode, numchars: usize, data: Vec<bool>) -> Self {
        Self {
            mode,
            numchars,
            data,
        }
    }
pub fn new ( mode : QrSegmentMode , numchars : usize , data : Vec < bool > ) -> Self { Self { mode , numchars , data , } }
Creates a new QR Code segment with the given attributes and data.
Creates a new QR Code segment with the given attributes and data .
mode
QrSegmentMode
numchars
usize
data
Vec<bool>