Lines Matching defs:value
131 // the resulting object still has a mask value between 0 and 7.
215 assert!(minversion <= maxversion, "Invalid value");
230 version = Version::new(version.value() + 1);
287 let size = usize::from(ver.value()) * 4 + 17;
291 mask: Mask::new(0), // Dummy value
405 self.draw_format_bits(Mask::new(0)); // Dummy mask value; overwritten later in the constructor
416 let data: u32 = u32::from(self.errorcorrectionlevel.format_bits() << 3 | mask.value());
451 if self.version.value() < 7 {
457 let data = u32::from(self.version.value()); // uint6, in the range [7, 40]
592 // the same mask value a second time will undo the mask. A final well-formed
597 let invert: bool = match mask.value() {
699 let ver: u8 = self.version.value();
719 let ver = usize::from(ver.value());
745 table[ecl.ordinal()][usize::from(ver.value())] as usize
823 // Pushes the given value to the front and drops the last value.
871 // Version: (note that index 0 is for padding, and is set to an illegal value)
880 // Version: (note that index 0 is for padding, and is set to an illegal value)
1058 /// (ECI) designator with the given assignment value.
1070 panic!("ECI assignment value out of range");
1149 // where each character value maps to the index in the string.
1169 // Returns an unsigned 4-bit integer value (range 0 to 15)
1193 })[usize::from((ver.value() + 7) / 17)]
1209 /// Appends the given number of low-order bits of the given value to this buffer.
1268 assert!((Version::MIN.value() ..= Version::MAX.value()).contains(&ver), "Version number out of range");
1272 /// Returns the value, which is in the range [1, 40].
1273 pub fn value(self) -> u8 {
1288 assert!(mask <= 7, "Mask value out of range");
1292 /// Returns the value, which is in the range [0, 7].
1293 pub fn value(self) -> u8 {