MCPcopy 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

2use std::rc::Rc;
3
4pub struct Store<T> {
5 state: Rc<RefCell<T>>,
6}
7
8impl<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