Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algoscienceacademy/RustUI
/ Store
Class
Store
src/store/mod.rs:4–6 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
use std::rc::Rc;
3
4
pub struct Store<T> {
5
state: Rc<RefCell<T>>,
6
}
7
8
impl<T: Clone> Store<T> {
9
pub fn new(initial_state: T) -> Self {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected