MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / finish_usage

Method finish_usage

canvas/src/draw_stream.rs:70–76  ·  view source on GitHub ↗

Decreases the usage count of this core and returns the new usage count

(&mut self)

Source from the content-addressed store, hash-verified

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

Callers 2

dropMethod · 0.80
dropMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected