1
2
3
4
5
6
7
8
9
//! Shared state that can be accessed by many components.

mod reducer;
mod state;

type SubscriberFn<Data> = Box<dyn Fn(&Data) -> bool + 'static + Send + Sync>;

pub use reducer::{Reducer, Reducible};
pub use state::{SharedState, SharedStateReadGuard, SharedStateWriteGuard};