(&self, f: F)
| 24 | } |
| 25 | |
| 26 | pub fn update<F>(&self, f: F) |
| 27 | where |
| 28 | F: FnOnce(&mut T), |
| 29 | { |
| 30 | f(&mut self.value.borrow_mut()); |
| 31 | *self.changed.borrow_mut() = true; |
| 32 | } |
| 33 | |
| 34 | pub fn changed(&self) -> bool { |
| 35 | *self.changed.borrow() |
nothing calls this directly
no outgoing calls
no test coverage detected