MCPcopy Create free account
hub / github.com/Glyphack/enderpy / intern

Function intern

parser/src/parser/parser.rs:31–35  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

29}
30
31pub fn intern(s: &str) -> StrId {
32 let val = INTERNER.get_or_init(|| RwLock::new(Interner::with_capacity(100)));
33 let mut v2 = val.write().unwrap();
34 v2.intern(s)
35}
36
37#[derive(Debug)]
38pub struct Parser<'a> {

Callers 2

Calls 1

internMethod · 0.80

Tested by

no test coverage detected