Lines Matching defs:new
79 //! Version::new(5), Version::new(5), Some(Mask::new(2)), false).unwrap();
230 version = Version::new(version.value() + 1);
242 let mut bb = BitBuffer(Vec::new());
280 /// Creates a new QR Code with the given version number,
291 mask: Mask::new(0), // Dummy value
306 let i = Mask::new(i);
405 self.draw_format_bits(Mask::new(0)); // Dummy mask value; overwritten later in the constructor
514 // Returns a new byte string representing the given data with the appropriate error correction
624 let mut runhistory = FinderPenalty::new(size);
648 let mut runhistory = FinderPenalty::new(size);
815 pub fn new(size: i32) -> Self {
944 /// and call the `QrSegment::new()` constructor with appropriate values.
980 QrSegment::new(QrSegmentMode::Byte, data.len(), bb.0)
1004 QrSegment::new(QrSegmentMode::Numeric, text.len(), bb.0)
1032 QrSegment::new(QrSegmentMode::Alphanumeric, text.len(), bb.0)
1072 QrSegment::new(QrSegmentMode::Eci, 0, bb.0)
1078 /// Creates a new QR Code segment with the given attributes and data.
1082 pub fn new(mode: QrSegmentMode, numchars: usize, data: Vec<bool>) -> Self {
1267 pub fn new(ver: u8) -> Self {
1287 pub fn new(mask: u8) -> Self {