MCPcopy Create free account
hub / github.com/carllerche/assert-struct / next_node_id

Function next_node_id

assert-struct-macros/src/parse.rs:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9pub(crate) fn next_node_id() -> usize {
10 NODE_ID_COUNTER.with(|counter| {
11 let id = counter.get();
12 counter.set(id + 1);
13 id
14 })
15}
16
17fn reset_node_counter() {
18 NODE_ID_COUNTER.with(|counter| counter.set(0));

Callers 13

parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
newMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected