MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / new

Method new

toys/conflict/src/main.rs:12–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11impl MyStruct {
12 fn new() -> Self {
13 Self {
14 mu: Mutex::new(true),
15 rw1: RwLock::new(1),
16 rw2: RwLock::new(1),
17 }
18 }
19
20 fn mu_rw1(&self) -> i32 {
21 let mu = self.mu.lock().unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected