(&self)
| 36 | |
| 37 | #[inline] |
| 38 | pub(super) fn snapshot(&self) -> ScratchSnapshot { |
| 39 | ScratchSnapshot { |
| 40 | len: self.buffer.len(), |
| 41 | bomb: DebugDropBomb::new("Scratch buffer snapshots must be restored."), |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | #[inline] |
| 46 | pub(super) fn take<C: FromIterator<T>>(&mut self, snapshot: ScratchSnapshot) -> C { |