(&mut self, offset: usize, f: impl FnOnce(&mut T) -> V)
| 57 | } |
| 58 | |
| 59 | pub fn modify<T, V>(&mut self, offset: usize, f: impl FnOnce(&mut T) -> V) -> V { |
| 60 | f(self.get_mut(offset)) |
| 61 | } |
| 62 | |
| 63 | pub fn sync(&mut self) { |
| 64 | if self.modified { |
no test coverage detected