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

Method is_at_limit

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

Check if the counter has reached its limit

(&self)

Source from the content-addressed store, hash-verified

50 }
51 }
52
53 // Another constructor for a disabled counter
54 fn new_disabled(name: &'static str, limit: u32) -> Self {
55 let mut counter = Self::new(name, limit); // Call the primary constructor
56 counter.enabled = false;
57 counter
58 }

Callers 1

incrementMethod · 0.80

Calls 2

get_countMethod · 0.45
get_limitMethod · 0.45

Tested by

no test coverage detected