(&mut self, block: Buffer)
| 290 | /// Append a block to `self.completed`, checking for overflow |
| 291 | #[inline] |
| 292 | fn push_completed(&mut self, block: Buffer) { |
| 293 | assert!(block.len() < u32::MAX as usize, "Block too large"); |
| 294 | assert!(self.completed.len() < u32::MAX as usize, "Too many blocks"); |
| 295 | self.completed.push(block); |
| 296 | } |
| 297 | |
| 298 | /// Returns the value at the given index |
| 299 | /// Useful if we want to know what value has been inserted to the builder |
no test coverage detected