MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get

Method get

crates/opencode-tui/src/hooks/use_state.rs:17–19  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

15 }
16
17 pub fn get(&self) -> T {
18 self.value.borrow().clone()
19 }
20
21 pub fn set(&self, value: T) {
22 *self.value.borrow_mut() = value;

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected