Lines Matching refs:range

47 //! - User can specify minimum and maximum version numbers allowed, then library will automatically choose smallest version in the range that fits the data
136 /// If the data is too long to fit in any version in the given range
139 /// The smallest possible QR Code version within the given range is automatically
193 /// If the data is too long to fit in any version in the given range
196 /// The smallest possible QR Code version within the given range is automatically
207 /// - The input slice range dataandtempbuffer[0 .. datalen] should normally be
241 /// The smallest possible QR Code version within the given range is automatically
264 } else if version >= maxversion { // All versions in the range could not fit the given data
361 /// Returns this QR Code's version, in the range [1, 40].
367 /// Returns this QR Code's size, in the range [21, 177].
383 /// Returns this QR Code's mask, in the range [0, 7].
398 let range = 0 .. self.size();
399 range.contains(&x) && range.contains(&y) && self.get_module_bounded(x as u8, y as u8)
405 let range = 0 .. *self.size;
406 assert!(range.contains(&x) && range.contains(&y));
416 let range = 0 .. self.size();
417 if range.contains(&x) && range.contains(&y) {
425 let range = 0 .. *self.size;
426 assert!(range.contains(&x) && range.contains(&y));
568 let ver = u32::from(self.version().value()); // uint6, in the range [7, 40]
631 // Sets every module in the range [left : left + width] * [top : top + height] to dark.
791 // Each position is in the range [0,177), and are used on both the x and y axes.
814 // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
866 // The degree of the divisor polynomial, in the range [1, 30].
881 assert!((1 ..= result.divisor.len()).contains(&degree), "Degree out of range");
1034 // Returns an unsigned 2-bit integer (in the range 0 to 3).
1046 // Returns an unsigned 2-bit integer (in the range 0 to 3).
1174 panic!("ECI assignment value out of range");
1271 /// A string is encodable iff each character is in the range 0 to 9.
1308 // Returns an unsigned 4-bit integer value (range 0 to 15)
1323 // in a QR Code at the given version number. The result is in the range [0, 16].
1433 /// Panics if the number is outside the range [1, 40].
1435 assert!((Version::MIN.value() ..= Version::MAX.value()).contains(&ver), "Version number out of range");
1439 /// Returns the value, which is in the range [1, 40].
1460 /// Panics if the number is outside the range [0, 7].
1462 assert!(mask <= 7, "Mask value out of range");
1466 /// Returns the value, which is in the range [0, 7].