MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / new

Method new

src/store/mod.rs:9–13  ·  view source on GitHub ↗
(initial_state: T)

Source from the content-addressed store, hash-verified

7
8impl<T: Clone> Store<T> {
9 pub fn new(initial_state: T) -> Self {
10 Self {
11 state: Rc::new(RefCell::new(initial_state)),
12 }
13 }
14
15 pub fn dispatch<F>(&self, mutation: F)
16 where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected