| 2 | use std::any::Any; |
| 3 | |
| 4 | pub struct Store<T: 'static> { |
| 5 | state: Arc<Mutex<T>>, |
| 6 | subscribers: Vec<Box<dyn Fn(&T)>>, |
| 7 | } |
| 8 | |
| 9 | impl<T: Clone + 'static> Store<T> { |
| 10 | pub fn new(initial_state: T) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected