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

Method set

crates/opencode-tui/src/hooks/use_state.rs:21–24  ·  view source on GitHub ↗
(&self, value: T)

Source from the content-addressed store, hash-verified

19 }
20
21 pub fn set(&self, value: T) {
22 *self.value.borrow_mut() = value;
23 *self.changed.borrow_mut() = true;
24 }
25
26 pub fn update<F>(&self, f: F)
27 where

Callers 2

renderMethod · 0.45
renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected