Skip to main content

StateReducer

Type Alias StateReducer 

Source
pub type StateReducer = Box<dyn Fn(&Value, &Value) -> Result<Value, String> + Send + Sync>;
Expand description

State Reducer 类型别名 — 将已有值与新值合并。

Aliased Type§

pub struct StateReducer(/* private fields */);