pub struct FnReducer<F, State, Action>where
F: Fn(&State, &Action) -> DispatchOp<State, Action>,
State: Send + Sync + Clone,
Action: Send + Sync + 'static,{ /* private fields */ }Expand description
FnReducer is a reducer that is created from a function.
Trait Implementations§
Auto Trait Implementations§
impl<F, State, Action> Freeze for FnReducer<F, State, Action>where
F: Freeze,
impl<F, State, Action> RefUnwindSafe for FnReducer<F, State, Action>
impl<F, State, Action> Send for FnReducer<F, State, Action>where
F: Send,
impl<F, State, Action> Sync for FnReducer<F, State, Action>where
F: Sync,
impl<F, State, Action> Unpin for FnReducer<F, State, Action>
impl<F, State, Action> UnwindSafe for FnReducer<F, State, Action>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more