pub trait Store: 'static {
// Required methods
fn new(cx: &Context) -> Self;
fn should_notify(&self, old: &Self) -> bool;
}
Expand description
A type that holds application state.
Required Methods§
sourcefn should_notify(&self, old: &Self) -> bool
fn should_notify(&self, old: &Self) -> bool
Indicate whether or not subscribers should be notified about this change. Usually this
should be set to self != old
.
Object Safety§
This trait is not object safe.