Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
render
Method · 0.45
render
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected