Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carllerche/assert-struct
/ new
Method
new
assert-struct-macros/src/pattern/string.rs:18–23 ·
view source on GitHub ↗
(lit: LitStr)
Source
from the content-addressed store, hash-verified
16
17
impl PatternString {
18
pub fn new(lit: LitStr) -> Self {
19
PatternString {
20
node_id: next_node_id(),
21
lit,
22
}
23
}
24
}
Callers
nothing calls this directly
Calls
1
next_node_id
Function · 0.85
Tested by
no test coverage detected