(initial_state: T)
| 7 | |
| 8 | impl<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 |
nothing calls this directly
no outgoing calls
no test coverage detected