(&self, snapshot: &ScratchSnapshot)
| 27 | |
| 28 | #[inline] |
| 29 | pub(super) fn is_empty(&self, snapshot: &ScratchSnapshot) -> bool { |
| 30 | debug_assert!( |
| 31 | self.buffer.len() >= snapshot.len, |
| 32 | "Scratch buffer snapshots must be restored in reverse order of creation." |
| 33 | ); |
| 34 | self.buffer.len() == snapshot.len |
| 35 | } |
| 36 | |
| 37 | #[inline] |
| 38 | pub(super) fn snapshot(&self) -> ScratchSnapshot { |
no test coverage detected