MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / disable

Method disable

tests/binary/impl/src/main.rs:109–111  ·  view source on GitHub ↗

Disable the counter

(&mut self)

Source from the content-addressed store, hash-verified

107 // Increment the counter by a specific amount. Clamps at the limit.
108 // Returns the actual amount the counter was incremented by.
109 fn increment_by(&mut self, amount: u32) -> u32 {
110 if !self.enabled {
111 return 0; // Not enabled, incremented by 0
112 }
113
114 let current_count = self.count;

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected