Decreases the usage count of this core and returns the new usage count
(&mut self)
| 68 | /// Decreases the usage count of this core and returns the new usage count |
| 69 | /// |
| 70 | pub fn finish_usage(&mut self) -> usize { |
| 71 | if self.usage_count > 0 { |
| 72 | self.usage_count -= 1; |
| 73 | } |
| 74 | |
| 75 | self.usage_count |
| 76 | } |
| 77 | |
| 78 | /// |
| 79 | /// On restore, rewinds the canvas to before the last store operation |