Lines Matching refs:from
19 * liability, whether in an action of contract, tort or otherwise, arising from,
25 //! Generates QR Codes from text strings and byte arrays.
104 /// The impl provides static factory functions to create a QR Code from text or binary data.
106 /// (sizes) from 1 to 40, all 4 error correction levels, and 4 character encoding modes.
149 /// read from or write to the suffix array[len .. array.len()].
206 /// read from or write to the suffix array[len .. array.len()].
369 i32::from(*self.size)
376 usize::from(self.get_module_bounded(0, 8)) << 1 |
377 usize::from(self.get_module_bounded(1, 8)) << 0;
386 u8::from(self.get_module_bounded(2, 8)) << 2 |
387 u8::from(self.get_module_bounded(3, 8)) << 1 |
388 u8::from(self.get_module_bounded(4, 8)) << 0)
407 let index = usize::from(y) * usize::from(*self.size) + usize::from(x);
427 let index = usize::from(y) * usize::from(*self.size) + usize::from(x);
441 // bytes from the blocks, stores them in the output array, and returns a slice of resultbuf.
460 let datlen: usize = shortblockdatalen + usize::from(i >= numshortblocks);
545 self.set_module_unbounded(i32::from(size) - 4 + dx, 3 + dy, false);
546 self.set_module_unbounded(3 + dx, i32::from(size) - 4 + dy, false);
561 self.set_module_bounded((i32::from(pos0) + dx) as u8, (i32::from(pos1) + dy) as u8, dx == 0 && dy == 0);
568 let ver = u32::from(self.version().value()); // uint6, in the range [7, 40]
599 let data = u32::from(ecl.format_bits() << 3 | mask.value());
687 let x = i32::from(x);
688 let y = i32::from(y);
777 let total = i32::from(size) * i32::from(size); // Note that size is odd, so dark/total != 1/2
801 let result = &mut resultbuf[ .. usize::from(numalign)];
803 result[usize::from(i)] = *self.size - 7 - i * step;
816 let ver = usize::from(ver.value());
840 // Returns an entry from the given table based on the given values.
842 table[ecl.ordinal()][usize::from(ver.value())] as usize
862 // Polynomial coefficients are stored from highest to lowest power, excluding the leading term which is always 1.
945 qr_size: i32::from(size),
968 ( i32::from(core && rh[0] >= n * 4 && rh[6] >= n)
969 + i32::from(core && rh[6] >= n * 4 && rh[0] >= n))
1118 accumdata = accumdata * 10 + u32::from(b - b'0');
1218 Some(temp / 8 + usize::from(temp % 8 != 0)) // ceil(temp / 8)
1263 result = result.checked_add(4 + usize::from(ccbits))?;
1332 })[usize::from((ver.value() + 7) / 17)]
1373 assert!(usize::from(len) <= usize::MAX - self.length);
1431 /// Creates a version object from the given number.
1458 /// Creates a mask object from the given number.