Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
pub(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
17
fn reset_node_counter() {
18
NODE_ID_COUNTER.with(|counter| counter.set(0));
Callers
13
parse
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
new
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
parse
Method · 0.85
Calls
1
get
Method · 0.80
Tested by
no test coverage detected